Hi,
I am trying to configure the FlexNVM for storing EEPROM-backup (E-flash) and FlexRAM for EERAM (EEPROM RAM) via software source code. I have read application notes: AN12003 (Using S32K148 FlexNVM Memory), AN11983 (Using the S32K1xx EEPROM Functionality). I have overviewed the NXP community forums and example codes. It is messed up for my side. I have two questions.
My first question is; do I have to set the MCU system frequency to 80 MHz for running EEPROM emulation functionality in S32K148 ?
p782 @ S32K1xx series reference manual (Rev.13, 04/2020) says:
CSEc (Security) or EEPROM writes/erase will
trigger error flags in HSRUN mode (112 MHz)
because this use case is not allowed to execute
simultaneously. The device need to switch to RUN
mode (80 Mhz) to execute CSEc (Security) or
EEPROM writes/erase.
My second question is, do I have to edit or add something in linker file for FlexNVM usage (storing EEPROM-backup (E-flash) and FlexRAM for EERAM) ?
Regards,
Solved! Go to Solution.
First question:
No,you don't have to set system frequency to 80MHz.
Second question:
No,you don't have to.
There is an example "flash_partitioning_s32k14x" in S32 DS,In this example,system clock is set to 48MHz,and did't edit or add anything in linker file.
BR!
Jim,
First question:
No,you don't have to set system frequency to 80MHz.
Second question:
No,you don't have to.
There is an example "flash_partitioning_s32k14x" in S32 DS,In this example,system clock is set to 48MHz,and did't edit or add anything in linker file.
BR!
Jim,
Hi Jim, thank you.