To write data to flash on Traveo 2 processors, a sector erase must be performed first, but when performing a sector erase, a 32-bit address is cleared. Even if I wanted to print an 8-bit value, I would waste the life of the 32-bit address. For this reason, I want to use Flash EEPROM emulation. Is there a source file for this?
When calling Cy_FlashSectorErase, the whole flash sector which the address is passed will be erased, as mentioned in the function description, also in the sub-section 22.214.171.124 Geometries in your device Architecture TRM.
Infineon provides an MCAL FEE driver which provides the upper layers with a “virtually” unlimited number of erase cycles. Kindly reach out to your local Infineon sales representative for this.
I hope this helps.