How to set VTOR in startup script
I'm using an ST part that has 2 banks of flash memory. I've built a code image for the second bank and downloaded it through the debugger. I've changed the startup script to set the VTOR register to the value needed for the second bank, with the line:
set *0xe000ed08 = (0x08040000)
however VTOR still has the default value for the first flash bank (0x08000000) after the download. I assume I've made a mistake in the script. Can anyone tell me how to correctly change the VTOR value in the script? Thanks.
Regards,
Lee