How to run application binary in sram with bootloader in S32K144

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to run application binary in sram with bootloader in S32K144

ソリューションへジャンプ
877件の閲覧回数
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 解決策
869件の閲覧回数
HyunungPark
Contributor III

Hi.

This issue is resolved.

BRs.

Hyunung Park

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
870件の閲覧回数
HyunungPark
Contributor III

Hi.

This issue is resolved.

BRs.

Hyunung Park

0 件の賞賛
返信
382件の閲覧回数
JosephJ
Contributor II
Hi,

What is the solution for this issue, it is not clear?
0 件の賞賛
返信