We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
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.
Two bootloaders will probably be the answer for my case. Thanks for you support Bastian.