cancel
Showing results for 
Search instead for 
Did you mean: 

Why cant debug the nucleo board

MikeP
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
Uwe Bonnes
Principal III

Probably you remapped the Debug pins. Try connect under reset.

View solution in original post

3 REPLIES 3
Uwe Bonnes
Principal III

Probably you remapped the Debug pins. Try connect under reset.

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
MikeP
Senior

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