How to create a section in flash as eeprom

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

How to create a section in flash as eeprom

1,256 Views
divithsid
Contributor I

I want to create a section in flash as eeprom. How to do it? is there any demo code available to implement it.

Labels (1)
0 Kudos
4 Replies

1,225 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello
Hope you are well.
Unfortunately, the RT106x doesn´t have this feature unlike other families with FlexMemory like kinetis K64.

I apologize for the inconvenience this may cause you, if you have more questions do not hesitate to ask me.
Best regards,
Omar

0 Kudos

1,219 Views
divithsid
Contributor I

Im using external flash. can we do it in external flash?

 

0 Kudos

1,188 Views
jay_heng
NXP Employee
NXP Employee

You need to create firmware to emulate eeprom, it is MCU chip independent, you can refer to below links for firmware design.

https://electronics.stackexchange.com/questions/258851/flash-eeprom-emulation

https://www.silabs.com/documents/public/application-notes/AN568.pdf

 

For i.MXRT SDK, we don't have eeprom emulate driver, the most similar design is in \SDK\components\flash\mflash

 

0 Kudos

1,199 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

I suggest you contact the external flash manufacturer. I believe it is not possible to emulate an EEPROM with flash memory.
You can use the flash to store some data however this is not recommended since it will shorten the life of the memory since you will be making a lot of programming cycles.

I apologize for the inconvenience this may cause you, if you have more questions do not hesitate to ask me.
Best regards,
Omar

0 Kudos