Ram-run code jump to "frame_dummy"

cancel
Showing results for 
Search instead for 
Did you mean: 

Ram-run code jump to "frame_dummy"

47 Views
Xjh193
Contributor II

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 Reply

11 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