How to run application binary in sram with bootloader in S32K144

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to run application binary in sram with bootloader in S32K144

Jump to solution
1,162 Views
HyunungPark
Contributor III

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

0 Kudos
Reply
1 Solution
1,154 Views
HyunungPark
Contributor III

Hi.

This issue is resolved.

BRs.

Hyunung Park

View solution in original post

0 Kudos
Reply
2 Replies
1,155 Views
HyunungPark
Contributor III

Hi.

This issue is resolved.

BRs.

Hyunung Park

0 Kudos
Reply
667 Views
JosephJ
Contributor II
Hi,

What is the solution for this issue, it is not clear?
0 Kudos
Reply