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
@danielmartynek , can you tell me what is the procedure in add a section for the FlexRAM in the linker file
Hello @mayur_kansara,
I believe this is explained in the thread and the example I linked.
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
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:
Regards,
Daniel