Skip to main content
Dossy
Associate
May 4, 2019 7:54 PM UTC
Question

Debugging startup won't progress past: bl SystemInit

Firstly I'm very new to all of this so apologies if this is trivial.

I have been trying to debug and run a simple blinking led project onto a STM32WB nucleo board using the STM32CubeIDE v1.0 (MacOS). After staring the debugging session, the console displays download verified successfully yet I do not have the option to run the project only pause or terminate.

Using breakpoints it seems to be getting hung up at the line, bl SystemInit in the file startup_stm32wb55rgvx.s and never actually gets to the main function.

The project was created with the cubeMX inside the IDE. All firmware and software has been updated.

Im asking this here because I have had success with the Atollic TrueStudio IDE which makes me think this issue is IDE based?? Or do i just have change some settings?

This topic has been closed for replies.

8 replies

Tesla DeLorean
Guru
May 4, 2019 9:45 PM UTC

Well indicative of some broken expectations in the function. You should stop the debugger and SEE where it is stuck, most likely the Error_Handler or HardFault_Handler.

Often dependencies on clock inputs, pll and flash wait state settings.

Check also compiler/linker command line settings passed by the tool chain, and as meta data in the project itself.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Dossy
DossyAuthor
Associate
May 5, 2019 7:55 PM UTC

Where can i find these settings?

johnjohn9105
Associate II
May 5, 2019 2:58 PM UTC

It's almost certainly not the IDE. When you pause the code (which breaks into the running process), what function is the CPU in?

Dossy
DossyAuthor
Associate
May 5, 2019 7:10 PM UTC

The CPU is in the HardFault_Handler as @Community member​ suspected it would be

johnjohn9105
Associate II
May 5, 2019 8:20 PM UTC

Check your compiler flags. Ensure you're compiling to the Thumb instruction set and not the ARM instruction set.