cancel
Showing results for 
Search instead for 
Did you mean: 

Reset doesn't seem to put the IVT MSP value into the MSP

LThal
Associate II

I'm using the STM32L152 processor. I just noticed that on a reset the value at IVT slot 0, which should be the MSP value, doesn't get put into the MSP. I see another value there on a reset. I added "ldr sp, =_estack" at the start of Reset_Handler, and that seems to work, but I'm curious why a reset didn't force _estack into the MSP.

1 REPLY 1
DOsbo
Senior

I came across the same problem with my STM32H7. I discovered it was because BOOT0 pin was tied high. That meant the micro assumes the vector table is at address 0x00000000. When I tied BOOT0 low, the micro used the correct vector table at 0x08000000.