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

Share code examples or discuss embedded software, including device drivers, interrupt handlers, middleware and application code.

Moderators: Markus Girdland, Mattias Norlander

LeeT
Posts: 12
Joined: Thu Jan 10, 2019 6:02 pm

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

Postby LeeT » Thu Apr 11, 2019 12:23 pm

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. Thanks.

Return to “Embedded target code development discussions”

Who is online

Users browsing this forum: No registered users and 1 guest