AnsweredAssumed Answered

Failure to start main on STM32F7

Question asked by Sergio Petrovko on Nov 21, 2017
Latest reply on Nov 25, 2017 by Sergio Petrovko

I am having an issue where STM32F7 fails to start on reset. Here is a section of a startup code which fails:

 

IMPORT SystemInit
IMPORT __main

LDR R0, =SystemInit
BLX R0
LDR R0, =__initial_sp ; restore original stack pointer
MSR MSP, R0
LDR R0, =__main
BX R0
ENDP

 

It gets stuck on the line BX R0 and never goes to main. Did anyone ever had similar issues? It only happens if I am trying to put something into external SRAM, though the SystemInit code stays the same regardless, and all registers before BX R0 look identical in both cases.

Any ideas? I am really stuck here

 

Outcomes