Skip to main content
MikeP
Associate III
May 22, 2019
Solved

Why cant debug the nucleo board

  • May 22, 2019
  • 3 replies
  • 890 views

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

This topic has been closed for replies.
Best answer by Uwe Bonnes

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

3 replies

Uwe Bonnes
Uwe BonnesBest answer
Chief
May 22, 2019

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

Tesla DeLorean
Guru
May 22, 2019

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
MikeP
MikePAuthor
Associate III
May 23, 2019

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