Question
What registers do I need to change when switching execution context with goto-statement?
Posted on December 04, 2017 at 10:55
I am working with the stm32f7 microcontroller and I have 2 projects, a bootloader project and an application project. The bootloader resides in the beginning of the flash memory and the application resides in the end. If I want to switch execution from application to bootloader or vice versa with a goto-statement to the other project's main-function, what registers (stack pointer, program counter, etc?) do I need to change to ensure correct execution?
