i am building a bootloader project , in others projrct based infineon TC233 ,i see the app address in pflash is 0x80020020, but when system reset ,the jump address for app is 0x80020000, the two address is different ,i want to know ,why they are not the same address ??????
now i am building a bootloader based on s32k144 ,the adderss jump app is 0x00010000,how should i set the app start address in pflash???
void Appl_JumpApp(uint32_t add)
{
static void (*jump_to_application)(void);
static uint32_t stack_pointer;
uint32_t appEntry, appStack;
appStack = *(uint32_t *)(add);
appEntry = *(uint32_t *)(add + 4);
/*把应用程序入口地址赋值给函数指针*/
jump_to_application = (void (*)(void))appEntry;
stack_pointer = appStack;
/* 重新定向中断向量表 */
S32_SCB->VTOR = (uint32_t)add;
/* 设置栈指针 */
__asm volatile ("MSR msp, %0\n" : : "r" (stack_pointer) : "sp");
__asm volatile ("MSR psp, %0\n" : : "r" (stack_pointer) : "sp");
/*跳转*/
jump_to_application();
}