Dear NXP officer,
1) I try to follow the link to try on the S32K1xx bootloader
S32k144 boot loader
after download the code, I notice:
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");
}
So variable userSP and userStartup is not used inside this function? then what is the purpose to declare them?
2. Is there a example on bootloader on LIN bus?
3. Is there source code for interface software too?
Thanks and best regards
He Wei