FLAXRAM for s32k144

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FLAXRAM for s32k144

2,309 Views
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 Replies

2,207 Views
mayur_kansara
Contributor II

Thank you @danielmartynek 

 

0 Kudos
Reply

2,260 Views
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 Kudos
Reply

2,225 Views
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,261 Views
mayur_kansara
Contributor II

Thank you @danielmartynek .

 

0 Kudos
Reply

2,292 Views
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