I’m trying to come up with a system to perform wear leveling in the Dflash EEPROM (AURIX TC265).
After going through the user manual, example code, and a few other posts in this forum, the correct way of writing to Dflash is (Please correct this if it’s wrong)
1. Erase entire sector( 8KB)
2. Enter Page mode with the page address
3. Load data to be written
4. Write page/ write burst.
Repeat steps 3 and 4 until the needed amount of data is written to DFlash.
The data that I want to write to Dflash isn’t further than 32 bytes in total. So, I was looking for a technique to spread out these 32 bytes written in the logical sector( 8192 bytes) itself every time I need to store a new dataset. Is this possible? Or am I limited to spreading out my writes across sectors and not on the page level, as erase command works only on the sector level and not on the page level?