This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32F10x.s startup problem fails to get to main()

Keil uVision 3 V3.85 eval version
My code runs Ok using the Keil Simulator.

The problem is when I run my I2S code on the STM32E eval PCB using the STM32F103ZE

The problem is somewhat erratic, at some times the code runs Ok, then it goes into 'wont run to main' mode
The debugger stops in the disassembly code due to 'BKPT' instruction when no breakpoints are set in the debugger.
there are many BKPT instructions in _sys_open, _sys_close, _sys_write etc.
this debugger stops each time it encounters a BKPT instruction as it should.
this prevents me running the Keil start up code, it never gets to main()
The code downloads and verifies to the flash Ok.

Why does the Keil STM32F10x.s code sometimes have a lot of the BKPT instructions in it ? (presumably intended for software breakpoints)

Could anybody please help ?

0