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.
The first entry of the vector-table is the initial value for the stack-pointer.
I'm asking me, will the stack-pointer be changed when VTOR was set?
Thanks for any help! :-)
Hello,
thanks for the answer, but I'm not sure if that was the thing what I want to know.
Of course, after a reset of the CPU, the VTOR has it's default-value. With this, the stack pointer will be set also the the first value of the vector table (automatically).
My question was: My app runs and after a while it sets the VTOR to another value than the initial value. The reason was the definiton of other interrupt-handlers.
But what happened with the stack pointer? Will the SP be set (to the first entry of the NEW vector table) also (automatically)?
If I understood you right, the SP will be set anyway (by resetting the CPU and when relocating the vectortable by setting VTOR by the application).
Do I understand it correct?
Thanks,
jk