Ram-run code jump to "frame_dummy"

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

Ram-run code jump to "frame_dummy"

跳至解决方案
3,473 次查看
Xjh193
Contributor III

Only when I use "UINT32 __attribute__((section(".ram_run_code"))) FlashArrayIntegrityCheck" to define a Ram-run code, the code will go into "frame_dummy" after jump to main() in startup.s and I need to run the code by manual. What's problem in my code?

1. In ld file, ".ram_run_code : {} > safe_ram_asil AT > safe_asil_text" will define the segments.

2. In startup.s, copy down for ".ram_run_code" have been added.(If there aren't this code, "frame_dummy" problem also exist)

Compiler: S32DS Power with GCC, Debug:Trace 32

标记 (1)
0 项奖励
回复
1 解答
3,409 次查看
Xjh193
Contributor III

Hi, stanish

I use "S32 Design Studio for PA 2017.R1". 

The code please refer attachment, and the "RAM-run code" caller in main().

"CopyDown" code is in startup.s

在原帖中查看解决方案

0 项奖励
回复
3 回复数
3,336 次查看
Xjh193
Contributor III
0 项奖励
回复
3,436 次查看
stanish
NXP Employee
NXP Employee

Hi,

Could you possibly indicate which version of S32DS for Power do you use?

I'd suggest you to see this HOWTO document:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Run-a-routine-from-RAM-in-S32-De...

Can you attach your linker file and code snippet where you execute RAM code.

Hope it helps.

Stan

0 项奖励
回复
3,410 次查看
Xjh193
Contributor III

Hi, stanish

I use "S32 Design Studio for PA 2017.R1". 

The code please refer attachment, and the "RAM-run code" caller in main().

"CopyDown" code is in startup.s

0 项奖励
回复