This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Change Vector Table in cortex M4 in a persistent way

Hello,

I need to change the Vector Table but I need it to be persistent through a reset, what I'm trying to do is set a vector table duplicate as a safety measurement for reprogramming the original vector table.

So far I being playing with the VTOR register but it seem that it return to 0 when a reset occurs.

am I messing something?

Regards.

Parents
  • Well, because at the end the reflash of the bootloader (including the vector table) will be done by a peripheral like SPI (or some other), there won't be debug access on the units, and if something goes wrong I will end up with a dead unit.

    So it was a safety measure that some microcontrollers that I have previously work with allow, so that's why I though I was missing something.

    Is there another to achieve safety while flashing the vector table in this processor? Or is it consider a issue that doesn't need to be address due to the minimal possibility for it to happen? 

Reply
  • Well, because at the end the reflash of the bootloader (including the vector table) will be done by a peripheral like SPI (or some other), there won't be debug access on the units, and if something goes wrong I will end up with a dead unit.

    So it was a safety measure that some microcontrollers that I have previously work with allow, so that's why I though I was missing something.

    Is there another to achieve safety while flashing the vector table in this processor? Or is it consider a issue that doesn't need to be address due to the minimal possibility for it to happen? 

Children