Stack pointer for the STM32L151CB in STM32CubeMX
I am working on the readout of a GPS module on the Rak811 tracker board featuring an STM32L151CB processor. My program showed very strange effects and after longish debuggginb I found out that the stack pointer was wrongly set at entry of me man program. The code was generated by STM32CubeMX. Did anybody else see this?
I could not find out where in the startup code the SP is set up but then I set it up myself immediately at the reset entry point everything works fine.
The strange this is that on a STM32F103C8T6 everything is correct also without my modification.
Uli
