Thanks for Your quick response mariuslucianandrei,
I'm looking forward for Your example model!
I didn't start writing anything yet - I was still reading documentation.
If I understand correctly, there is a way of configuring and using EEPROM without flash_driver. The configuration can be done with appropriate settings of "advanced options" of the debugger in S32DS (program partition command). Then a structure with user data fields can be put directly in FlexRAM region. But this solution seems to have some disadvantages:
- at some point we have to 'exit' Matlab/Simulink and use S32DS
- we have to adjust/change the linker file (I think the linker file used by S32K1xx MBD toolbox has no definitions of FlexRAM regions)
- we still have to write 'driver blocks' for reading/writing the user data structure in FlexRAM
If I'm wrong with the above - please let me know.
In our application, we have non-volatile data that will be re-configured very rarely - so for this writing and reading FlexNVM would be sufficient. But we also have run-time data that need to be saved frequently - for this we need EEPROM functionality. In summary working EEPROM is enough to meet the customer requirements.
If You can prepare a very simple example model with Matlab Function blocks for initial configuration of memory partition and for reading and writing EEPROM (via configured FlexRAM; all of this using flash_driver) it would help us significantly.
Thanks for help
Maciek