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
  • No, there is no way. On Cortex-M VTOR is always set to zero on reset.
    But since this table is in Flash, why do you want any safety measures? Sure, there is a small likelyhood that the reset-vector gets destroyed, but this renders likely your device inoperable and you external HW should deal with a CPU which does not work (there are plenty of other reasons).

Reply
  • No, there is no way. On Cortex-M VTOR is always set to zero on reset.
    But since this table is in Flash, why do you want any safety measures? Sure, there is a small likelyhood that the reset-vector gets destroyed, but this renders likely your device inoperable and you external HW should deal with a CPU which does not work (there are plenty of other reasons).

Children
More questions in this forum