Hello,
We are a bit confused about the EEE system to flash in a back-up memory.
What we understood so far, is that we can configure on S32K146 a FlexRAM of 0kB or 4kB, if the EEE_ENABLE flag is set, we will use this EEE memory of 4kB as a buffer to read and write to E-Flash.
We would like to have the best endurance, so we configured a E-Flash of 64kB.
Let's say we have some Monitoring data, like version of the software or some values, all in a structure. And some default data, open load, shorted low etc.. in another structure.
And we want to write the monitoring data every 10 min, and default data everytime something happend.
How does the EEE state machine will proceed ? How does he know which data i am passing, either the monitoring structure or the defaults structure ?
If we have theses structures in our program, we will have twice the data ? Once in the FlexRAM and once in the code somewhere ?
Can we partition the EEE memory to write several structures ? And then have only one structure in RAM ?
In the flash_partitionning example, we can write some data from a base address, and then try to update from that address + 1u a byte. What will happen in the E-Flash backup ? He will write another structure after with the first one with the modification ? Or he will modify the first already written ?
We have seen the FME calculator, to compute the maximum life time of the E-Flash backup. But how can we compute the life time with asynchronous interrupts ? Like for the defaults, we will write them as soon as they appears.
I know it is a lot of questions, but i'll be very thankfull if you can answer them
Best regards,
Brice