NEWBIE Unable To Debug Or Run Simple Blinky Project
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-21 09:29 PM
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
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-22 04:58 AM
Take STM32CubeProg, set Mode to "Connect Under Reset" and erase the whole MCU.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-21 11:41 PM
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-22 04:58 AM
Take STM32CubeProg, set Mode to "Connect Under Reset" and erase the whole MCU.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-22 10:01 AM
Thank you! That 100% worked. Appreciate the quick response :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-22 10:01 AM
Thanks for the quick response! I was able to fix it via Piranha's solution.