How to make function run in RAM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to make function run in RAM

1,517件の閲覧回数
yuehedeng
Contributor III

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.

RAM.PNG

Below is part of my ld file:

/**************** RAM function Section *******************/
.runInRam :
{
__RAMFUNC_START = .;
*(.runInRam)
*(.runInRam.*)
__RAMFUNC_END = .;
} > ramfunc_ram AT>Z4_APP_RAMFunc_text

タグ(2)
5 返答(返信)

1,042件の閲覧回数
stanish
NXP Employee
NXP Employee

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

0 件の賞賛

1,042件の閲覧回数
yuehedeng
Contributor III

Same to me when I try to open the link:

Unauthorized

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.

0 件の賞賛

1,042件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hello Guys,

I approved the article in internal community system. Could you please try to look once again and let me know, if you see the content?

Regards,

Martin

1,042件の閲覧回数
yuehedeng
Contributor III

Yes, I can open the link and see the content now. Thanks very much.

I will try the solution shown in the page.

1,042件の閲覧回数
nxppower912935
Contributor IV

Hi Stan,

I would be interested in that document, however I'm unauthorized. Is that so or limited user circle?

Regards

0 件の賞賛