Hi.
I want to run the application binary in sram with the bootloader of S32K144.
below is the icf file for the application.
/* SRAM_L */
define symbol m_interrupts_start = 0x1FFF8000;
define symbol m_interrupts_end = 0x1FFF83FF;
define symbol m_text_start = 0x1FFF8400;
define symbol m_text_end = 0x1FFFFFFF;
/* SRAM_U */
define symbol m_data_start = 0x20000000;
define symbol m_data_end = 0x20006FFF;
The bootloader doesn't jump to the main() of the application when I use the below code.
Could you please help me?
void Boot_JumpToAppOrNot(){
/* set new msp and psp. */
__asm("msr msp, r0");
__asm("msr psp, r0");
S32_SCB->VTOR = (uint32_t)0x1FFF8000;
/* Jump to application PC (r1) */
__asm("mov pc, r1");
}
Hyunung Park
已解决! 转到解答。