AnsweredAssumed Answered

HW emulated EEPROM on FlexRAM

Question asked by Ashish Dargad on Sep 6, 2019
Latest reply on Sep 23, 2019 by Xing Chang

I am using “frdmkw36_wireless_examples_bluetooth_hid_device_freertos” sample project from KW36 SDK. In this sample project, NVM interface provided in framework is using P Flash for NVM region. I want to utilize EEPROM emulation feature provided by HW. I don’t want SW to do emulation.

For that I am using some part of code from “frdmkw36_driver_examples_flash_flexnvm_eeprom” sample project. I have integrated flexnvm_eeprom.c in HID project.

I have done the partition using Program Partition command as given below:


Used as EEPROM : 512 Bytes

Used as Normal RAM : (16KB – 512 bytes)


D flash:

Used for EEPROM Backup : 32KB

Used for Normal Flash (Code Flash): (256KB – 32KB)


I have below queries:


Can I use Flex RAM as EEPROM (512 bytes) by calling “ FLASH_SetFlexramFunction(&s_flashDriver, kFLASH_FlexramFunctionOptionAvailableForEeprom)” and as Normal RAM (Remaining Flex RAM (16KB – 512 bytes)) when I call “FLASH_SetFlexramFunction(&s_flashDriver, kFLASH_FlexramFunctionOptionAvailableAsRam)” alternatively in runtime.