2019-05-22 08:51 AM
Hi,
I am learning how to use Uart and created a simple example project where I sent 'hello world'. i then use RealTerm to view this message.
i have generated this project using CubeMX and it works however i flashed the board once and after that i cannot debug it again, although the board is still working and i can connect to realterm to view the messages. i get the error 'Error in initializing ST-LINK device.
Reason: No device found on target.'
i connected another nucleo board to the computer and flashed that. the same thing happened where after its flashed it become unresponsive in the IDE.
I am using Atollic TrueStudio as my IDE.
STM32F103RB
Kind Regards,
Mike
Solved! Go to Solution.
2019-05-22 09:03 AM
Probably you remapped the Debug pins. Try connect under reset.
2019-05-22 09:03 AM
Probably you remapped the Debug pins. Try connect under reset.
2019-05-22 09:18 AM
Seem to recall has some buried option doing such stupidity by default.
The F1 has some awkward JTAG/SWD remap ability.
Fiddling with GPIOA bank, PA13/PA14
Sleep or WFI code
2019-05-23 01:19 AM
Hi thank you for your replies. ive just managed to fix the problem.
you were right.
With Truestudio it verifies that it can debug the circuit before it loads the new program on.
So i opened up Keil and flashed it with with an older file (one that i know that works) and voila- back to a working board. i Need to modify my CubeMX and sort out the pins before re flashing.
Thank you!
Mike