How to run application binary in sram with bootloader in S32K144

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to run application binary in sram with bootloader in S32K144

跳至解决方案
1,029 次查看
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 项奖励
回复
1 解答
1,021 次查看
HyunungPark
Contributor III

Hi.

This issue is resolved.

BRs.

Hyunung Park

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,022 次查看
HyunungPark
Contributor III

Hi.

This issue is resolved.

BRs.

Hyunung Park

0 项奖励
回复
534 次查看
JosephJ
Contributor II
Hi,

What is the solution for this issue, it is not clear?
0 项奖励
回复