2015-02-02 11:40 PM
my design using STM32F030K6T6, see attached schematics, and using SWD to program, with ST-LINK(Version is at attached picture), I can only program STM32F030K6T6 one time, after code (which is simple toggle one LED on/off) is running, ST-LINK can never connect to STM32F030K6T6 again, what is the reason ?
#stm322015-02-03 09:14 PM
Thank you for your instructions,
I did not do anything to PA13/PA14, i am just leave all unused PIN as floating which inlude the PA13/PA14. I will check it further. When ST-LINK connect to micro ,does ST-LINK first try to reset the micro ? since ST-LINK has a RESET PIN connect to micro NRST PIN, and the mode ''connect under reset'', does it mean ST-LINK can connect to micro without reset the micro first ? Thanks.2015-02-04 08:04 AM
Getting a processor under control via SWD/JTAG is a relatively long and complex process. My understanding of ''connect under reset'' is that it tries to do this while holding the core in reset so it doesn't run any/much of the code.
I have very narrow insight into exactly what you're doing, in the general sense I see sloppy programming of the GPIO, or other peripherals, with blind register writes where the original content is just over written. ie GPIOA->MODER = 0;2015-02-04 11:10 PM
yes, I have fixed the problem, the code have configured PA13/PA14 as analog, so the SWD function is prohibited.
Thank you again for your warmly support.2018-02-03 09:27 PM
Hi
,I am new to STM Controllers and i am working on STM32F030K6T6 where can i get sample codes like toggle led etc..,so that i can proceed from there.
Help is appreciated
Thank you
2018-02-04 06:10 AM
Please don't post off-topic to 3-year old threads.