FLAXRAM for s32k144

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FLAXRAM for s32k144

1,961 次查看
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 回复数

1,859 次查看
mayur_kansara
Contributor II

Thank you @danielmartynek 

 

0 项奖励
回复

1,912 次查看
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 项奖励
回复

1,877 次查看
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

1,913 次查看
mayur_kansara
Contributor II

Thank you @danielmartynek .

 

0 项奖励
回复

1,944 次查看
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