boot can not jmp to app

cancel
Showing results for 
Search instead for 
Did you mean: 

boot can not jmp to app

336 Views
tomaschen
Contributor I

Hi,My boot can't jump to APP, please help me.

   APP_IMAGE_START = 0x20000;pastedImage_1.png

  • Here's the address of the APP:

pastedImage_2.png

khumphriMandar‌Deactivated user‌dhavalRHinnenjimtrudeau

0 Kudos
1 Reply

200 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Could you try the code below?

void bootup_application(uint32_t appEntry, uint32_t appStack)
{
   S32_SCB->VTOR = APP_IMAGE_START;
   
   // SP
   __asm__("msr msp, r0");
   __asm__("msr psp, r0");
   
   // PC
   __asm__("mov pc, r1");
}

bootup_application(*((uint32_t*)APP_IMAGE_START), *((uint32_t*)(APP_IMAGE_START + 4)));‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Regards,

Daniel

0 Kudos