FLAXRAM for s32k144

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

FLAXRAM for s32k144

2,311件の閲覧回数
mayur_kansara
Contributor II

Hi Everyone, 

currently I am working on S32k144 microcontroller and my task is to implement the Flex ram, so can you help me to give some guidance how to write the implementation code for that and also what are the things I want to remember while writing the code for Flex ram, because this implementation I am doing first time  

5 返答(返信)

2,209件の閲覧回数
mayur_kansara
Contributor II

Thank you @danielmartynek 

 

0 件の賞賛
返信

2,262件の閲覧回数
mayur_kansara
Contributor II

@danielmartynek , can you tell me what is the procedure in add a section for the FlexRAM in the linker file

0 件の賞賛
返信

2,227件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @mayur_kansara,

I believe this is explained in the thread and the example I linked.

danielmartynek_0-1675250605381.png

Instead of eeeprom, you can use whatever name of the section you want.

Then, you can place a variable into the section using this attribute:

__attribute__((section(".eeeprom"))) uint32_t flexram_data;

 

 

Regadrs,

Daniel

2,263件の閲覧回数
mayur_kansara
Contributor II

Thank you @danielmartynek .

 

0 件の賞賛
返信

2,294件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @mayur_kansara,

The FlexRAM is RAM by default (FCNFG_RAMDY = 1).

You can use simply pointers to write and read the FlexRAM.

Or you can add a section for the FlexRAM in the linker file.

Refer to this example:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/Example-S32K144-EEEPROM-usage/ta-p/110...

 

Regards,

Daniel