I want to create a section in flash as eeprom. How to do it? is there any demo code available to implement it.
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
Im using external flash. can we do it in external flash?
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
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