Skip to main content
LThal
Associate III
April 10, 2019
Question

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

  • April 10, 2019
  • 1 reply
  • 600 views

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.

This topic has been closed for replies.

1 reply

DOsbo
Associate III
January 8, 2020

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.