Hi
I'm working on a bootloader project on MM9S1J638. I'm having an issue while jumping into application code.
I'm using below code to jump into the application code.
void Jump_Main_Application(void)
{
app_vector = *(unsigned long int *) (APPLICATION_RESET_VEC_ADD+1);
asm LD X,app_vector;
asm JMP (0,X);
}
APPLICATION_RESET_VEC_ADD is BOOTLOADER_START_ADD-4
I've checked, it holds the last 3 bytes of the s19 file. which is same as the start address of the application code(_Startup).
The problem is that when I directly jump into the application code. Then it dosen' t work.
But when I place a breakpoint anywhere inside the above function and then run the code. Then it works totally fine.