2017-05-19 8:25 AM
Hi!
When I flash a .hex or .bin file with a ST-LINK V2 device on my STM32F4 microcontroller (with ST-LINK utility), the program only works if both the ST-LINK V2 and my MCU board stay connected to the computer (through a USB cable). Whenever I unplug one of them the program just flashed on the board does not run anymore.
Does anyone have any idea of what is happening ?
Thanks for your help!
#st-link #flash-stm32 #st-link-utilitySolved! Go to Solution.
2017-05-22 4:46 AM
Thank you both of you but I managed to solve the problem.
It was actually due to the ST-Link device that was still plug to the MCU board and keeping it from running the program (even though it wasn't plug to the computer and not powered on...)
2017-05-19 8:45 AM
Hi
baures.tim
,ease refer tothis application note to verifyyour hardware implementation:
-Nesrine-
2017-05-19 11:07 AM
Does your design pull BOOT0 Low?
Do you initialize all the clocks and pins your application needs? Debugger gets chip in a viable state for it's own needs.
2017-05-22 4:46 AM
Thank you both of you but I managed to solve the problem.
It was actually due to the ST-Link device that was still plug to the MCU board and keeping it from running the program (even though it wasn't plug to the computer and not powered on...)
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.