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
  • OK, you want to update the bootloader? Why not have a two bootloaders. The first stage bootloader is as simple as possible but will never be changed. The second stage bootloader does not have to change the vector table thanks to VTOR. If it gets corrupted, you have at least a chance to fix it.

    Or, choose a device which has a bootloader in ROM.

Reply
  • OK, you want to update the bootloader? Why not have a two bootloaders. The first stage bootloader is as simple as possible but will never be changed. The second stage bootloader does not have to change the vector table thanks to VTOR. If it gets corrupted, you have at least a chance to fix it.

    Or, choose a device which has a bootloader in ROM.

Children