I am working on bootloader of kea128, i download the DEMOCODE from INTERNET, and convert it from Codewarrior to Keil, but the function jumptoapplication() doesn't work. In debugging, the sp register is 0x4000, the pc register is not 0x4000, it can not jump to application from boot .the code is like this :
void JumpToApplication(uint32_t sp, uint32_t pc)
static uint32_t s_stackPointer = 0;
pNewAppEntry = (uint32_t *)pc;
s_stackPointer = sp;
pJumpTo = ((JumpToPtr)(*pNewAppEntry));
who can help me?