Ahmad.H
28-02-2016, 20:01
سلام
می خواستم با استفاده از stlink موجود روی بورد دیسکاوری، میکرو STM8S003F3 رو پروگرام کنم.
اول دو تا جامپر دیسکاوری رو برداشتم:
You can see links before reply
بعد نحوه اتصال این شکلی بود که پین 3 دیسکاوری به زمین مدار میکرو
پین 5 دیسکاوری به NRST میکرو
پین 6 دیسکاوری به SWIM میکرو
You can see links before reply
بعدش از پایه های 5v و GND دیسکاوری تغذیه میکرو رو گرفتم. (5v=>Vdd و GND=>Vss)
بین Vcap میکرو و Vss هم یه خازن 100 نانو گذاشتم.
توی device manager هم STM32 STLink شناسایی شده.
تنظیمات ST Visual Programmer:
You can see links before reply
پیام خطایی که میده:
> Programming PROGRAM MEMORY area...
Error : Cannot communicate with the tool.
Wrong tool selection or check tool power supply or check that a previous session is closed.
Error : < PROGRAM MEMORY programming failed.
توی iar هم این خطا رو میده:
Sun Feb 28, 2016 18:59:39: Failed to initialize communcation with hardware: SWIM error [200]: ST-Link connection error
می خواستم ببینم اصلا همچین کاری امکان داره؟
ممنون
می خواستم با استفاده از stlink موجود روی بورد دیسکاوری، میکرو STM8S003F3 رو پروگرام کنم.
اول دو تا جامپر دیسکاوری رو برداشتم:
You can see links before reply
بعد نحوه اتصال این شکلی بود که پین 3 دیسکاوری به زمین مدار میکرو
پین 5 دیسکاوری به NRST میکرو
پین 6 دیسکاوری به SWIM میکرو
You can see links before reply
بعدش از پایه های 5v و GND دیسکاوری تغذیه میکرو رو گرفتم. (5v=>Vdd و GND=>Vss)
بین Vcap میکرو و Vss هم یه خازن 100 نانو گذاشتم.
توی device manager هم STM32 STLink شناسایی شده.
تنظیمات ST Visual Programmer:
You can see links before reply
پیام خطایی که میده:
> Programming PROGRAM MEMORY area...
Error : Cannot communicate with the tool.
Wrong tool selection or check tool power supply or check that a previous session is closed.
Error : < PROGRAM MEMORY programming failed.
توی iar هم این خطا رو میده:
Sun Feb 28, 2016 18:59:39: Failed to initialize communcation with hardware: SWIM error [200]: ST-Link connection error
می خواستم ببینم اصلا همچین کاری امکان داره؟
ممنون