Setting VTOR in startup script

Discuss how to use the features of Atollic TrueSTUDIO, including the editor, assembler, C/C++ compiler, linker, debugger, static code analysis and team collaboration tools.

Moderators: Markus Girdland, Mattias Norlander

Posts: 12
Joined: Thu Jan 10, 2019 6:02 pm

Setting VTOR in startup script

Postby LeeT » Thu Jan 17, 2019 3:40 pm

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 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.


Return to “Atollic TrueSTUDIO tool discussions”

Who is online

Users browsing this forum: No registered users and 3 guests