i have to jump from the bootmanager to either the bootloader or the application , so my way is to change the stack pointer and go to the reset handler of the destination , so how can i pass the stackpointer and resethandler of application or bootloader to the bootmanager to use them to jump
#MPC5748G
Hello,
Not sure what has stack pointer to do with instruction execution, but:
you will simply perform branch from your bootmanager to the memory location where your app or bootloader is:
label:
asm("e_b label");
Simplest possible way.
best regards,
Peter