Skip to main content
Aa.41
Associate
August 11, 2019
Solved

(4) No device found on target

  • August 11, 2019
  • 4 replies
  • 1260 views

1) STM32l432kc nucleo board

2) Today I decided to test my sleep mode code

I uploaded my code, I received my print messages on USART, I decided to tweak a few things... and here is the issue.

When I attempt to upload again, I receive the following error:

Error in initializing ST-LINK device.

Reason: No device found on target.

I am using the STM32CubeIDE and I believe the source of my problem might be assigning an incorrect bit within one of the registers, it locked up and isn't allowing me to upload anymore.

Is there a quick way to reset the board in case this type of problems arise (the push button doesn't seem to do anything)?

From some research I've done, I realised that SB9 can act as a ST-Link Reset, but I'm a bit afraid to mess around with the nucleo as it's the only one I have atm.

Thank you in advance for any help!

This topic has been closed for replies.
Best answer by Tesla DeLorean

Set BOOT0 High so it doesn't run your broken code.

Select "Connect Under Reset" options.

Check for options disabling the debug interface, reconfiguring the pins used for debug, or turning off power

4 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
August 11, 2019

Set BOOT0 High so it doesn't run your broken code.

Select "Connect Under Reset" options.

Check for options disabling the debug interface, reconfiguring the pins used for debug, or turning off power

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Aa.41
Aa.41Author
Associate
August 12, 2019

I de-soldered the SB connecting Boot0 to ground. Set it high, allowed me to erase the board under the "connect under reset" option.

I re-soldered the SB and everything worked fine after that.

Thank you all very much for your input. Was really afraid of hitting any protection levels. It seems I forgot the debug flag when in LP :)

S.Ma
Principal
August 11, 2019

If you activated any protection level 1 or 2, mass erase will be needed.

If your application SW is flimsy, add a 2-3 seconds delay when it starts so you have time to enter in debug mode before something goes AWOL

ADP1114
Associate III
August 11, 2019

This happened to me before, I just reinstalled ST-Link and haven't had the problem again so far.