Ram-run code jump to "frame_dummy"

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

Ram-run code jump to "frame_dummy"

Jump to solution
1,672 Views
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

Tags (1)
0 Kudos
1 Solution
1,608 Views
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

View solution in original post

0 Kudos
3 Replies
1,535 Views
Xjh193
Contributor III
0 Kudos
1,635 Views
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 Kudos
1,609 Views
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 Kudos