4 Replies Latest reply on Jul 25, 2019 8:19 AM by ViFo_3580266

    Cy_Em_EEPROM_Write variables overlapping global variables

    ViFo_3580266

      Hello,

       

      I'm trying to use the emulated eeprom in a project, and I noticed that when I try to write something on the EM_EEPROM it would change the values of my global variables and break my code.

       

      When I was debugging i noticed on the function Cy_Em_EEPROM_Write, the variables address are overlapping the other variable addresses:

       

      wearLevelingFactor 0x00000001 0x2000024C (All) unsigned long

      emEepromRowAddr 0x00000001 0x2000024C (All) unsigned long

       

       

      On the pictures you can see that emEepromRowAddr is getting the same address than context->wearLevelingFactor

       

      Does anyone know what could be the issue that is causing this?

       

      Thank you!