cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F303VCT - Applicatoin code not running outside of STMCubeIDE.

jlag
Associate III

STM32F303 - Application running fine in CubeIDE debugger, custom board. It will not start as standalone, programmed with CubeIDE or CubeProgrammer with .elf or .hex.

I have created an 'attach' run debug configuration, which can successfully display program execution and symbols when connected after CubeIDE starts the application.

I have placed the following code in main() in order to pause execution at the top of main to hopefully attach and step through to identify the fault.

jlag_1-1709927450108.png

However, when I attach after a cold/power reset, this is my trace, as if the system is not making it to main after cold start/no debugger.

jlag_0-1709927405306.png

I see the following data in the flash at location 0x0000 0000 when read with CubeProgrammer:

jlag_2-1709927661693.png

Shouldn't 0x04-0x07 contain the program start address of 0x0800 0000 + vector table size?

Is the flash is read protected and I am looking at invalid data?

 

10 REPLIES 10
jlag
Associate III

Solution was as @AScha.3 and @TDK suggested was BOOT0 being held high due to PCB manufacturing defect on boot switch orientation/placement.

Cheers to all.