cancel
Showing results for 
Search instead for 
Did you mean: 

NEWBIE Unable To Debug Or Run Simple Blinky Project

TNguy.18
Associate II

Hi everyone,

I recently got a Nucleo board (STM32L476RG) to introduce myself to the stm32 mcu and I've installed the stm32cubeide alongside it. I've been trying to run a simple blinky project for the past hour but I keep getting this message, "Waiting for debugger connection... Debugger connected... Debugger connection lost... Shutting Down..."

Has anyone encountered this problem before?

Thanks

0693W000003Q2BPQA0.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Piranha
Chief II

Take STM32CubeProg, set Mode to "Connect Under Reset" and erase the whole MCU.

View solution in original post

4 REPLIES 4
KnarfB
Principal III

That's bad. The first line (before connection lost) look fine. To rule out electrical issues you could try another USB port and cable. Otherwise, in the menu under Run > Debug Configurations choose your debug configuration. In the Debugger tab you can check Log to file which also increases verbosity level of the output. If this doesn't give you insight, try re-installing the ST-LINK driver package (STSW-LINK009) or connect to your board from a stand-alone tool like STM32CubeProg (no debugging).

Piranha
Chief II

Take STM32CubeProg, set Mode to "Connect Under Reset" and erase the whole MCU.

Thank you! That 100% worked. Appreciate the quick response :)

Thanks for the quick response! I was able to fix it via Piranha's solution.