My platform is MPC574x + S32DS.
My question is that how to copy a function into RAM and run after ECU start up. I search NXP community and found an example which may work in code warrior. But the S32 DS seems didn't support it.
Below is the function I want to run in RAM, but gets warnings during compiling.
Below is part of my ld file:
/**************** RAM function Section *******************/
.runInRam :
{
__RAMFUNC_START = .;
*(.runInRam)
*(.runInRam.*)
__RAMFUNC_END = .;
} > ramfunc_ram AT>Z4_APP_RAMFunc_text
Hi,
The #pragma section you are using in the source code is available in CodeWarrior MPC5xxx compiler only.
S32 Design Studio for Power compiler is based on gcc and therefore these pragmas are ignored.
I'd suggest you to read this document:HOWTO: Run a routine from RAM in S32 Design Studio
Hope it helps.
Stan
This place or content does not exist or access to it is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here.