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,
I think VOTR will be initialized by a reset although the VTOR had been changed.
Therefore, the sp initial value will always exist at address 0.
Best regards,
Yasuhiko Koumoto.
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