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
3,483 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
Reply
1 Solution
3,419 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
Reply
3 Replies
3,346 Views
Xjh193
Contributor III
0 Kudos
Reply
3,446 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
Reply
3,420 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
Reply