Skip to main content
Ankit
Associate II
May 29, 2019
Question

Help debugging Nucleo board using official STM32 Cube IDE.

  • May 29, 2019
  • 2 replies
  • 1406 views

I am unable to debug a simple blinky program created using the CubeMX software. The board I am using is a Nucleo F103RB board. The IDE seems to be able to flash the MCU but then I get a

ST-LINK SN : 0670FF363732594D43214619
ST-LINK FW : V2J34M25
Voltage : 3.26V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x410
Device name : STM32F101/F102/F103 Medium-density
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M3
 
 
 
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a01408.srec
 File : ST-LINK_GDB_server_a01408.srec
 Size : 96 Bytes
 Address : 0x08000000 
 
 
Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Download in Progress:
 
 
File download complete
Time elapsed during download operation: 00:00:00.477
 
 
 
Verifying ...
 
 
 
 
Download verified successfully 
 
 
Error! Failed to read target status 
Debugger connection lost.
Shutting down...
 

followed by this:

No source available for "(gdb[13].proc[42000].threadGroup[i1],gdb[13].proc[42000].OSthread[1]).thread[1].frame[0]" 

The same project debugs fine using the TrueStudio IDE.

This topic has been closed for replies.

2 replies

CDuen
Visitor II
June 20, 2019

Hi Ankit,

I had the same issue with a imported atollic studio project. The reason was that the startup-file was excluded from build (right-click on the folder and select properties, go to the item 'C/C++ Build' and uncheck the box 'Exclude resource from build'. That solved the problem for me.

Hope this helps...

Ankit
AnkitAuthor
Associate II
June 21, 2019

Hi Christian,

I just checked to make sure but the startup file & folder aren't excluded from the build in my case. I have tried importing TrueStudio projects created using the stand-alone version of CubeMX as well as new projects created using the inbuilt CubeMX plugin within the CubeIDE. No joy. I guess I'll have to continue using CubeMX+TrueSTUDIO 9.3 for now until ST fixes this :(