Hi all,
i am facing the issue with s32k324 controller.
After jumping from boot loader to application code, pointer stuckup with one particular location. Application is not running.
My code is below:
#define APP_START_ADDRESS 0x00504000 /*This is application memory address*/
JumpToUserApplication(*((uint32_t*)APP_START_ADDRESS), *((uint32_t*)(APP_START_ADDRESS + 0x4))); (Note: Instead of 0x04, i have tried offset address of 0xC also,the same is not working)
void JumpToUserApplication( unsigned int userSP, unsigned int userStartup)
{
/* Check if Entry address is erased and return if erased */
if(userSP == 0xFFFFFFFF)
{
return;
}
/* Set up stack pointer */
__asm("msr msp, r0");
__asm("msr psp, r0");
/* Relocate vector table */
S32_SCB->VTOR = (uint32_t)APP_START_ADDRESS;
/* Jump to application PC (r1) */
__asm("mov pc, r1");
(void)userStartup;
}
i have changed the application start address in linker file and the same attached below.

Pointer stuckup with below location and not moving further.

Kindly provide the solution for the same.