4 Replies Latest reply on Jul 17, 2019 11:26 AM by ThWi_3938146

    Cy_Flash_WriteRow returns success but does not work

    ThWi_3938146

      I am trying to write data to the EEPROM flash rows using the PSOC6 BLE PIONEER KIT.

      Here is my code running on CM0+. It completes with Success. However, the flash row is not updated when viewing memory with the debugger.

       

      uint32_t board_flash_rows[8][128]  __attribute__((section(".cy_em_eeprom"),aligned(512)));

       

       

      int main(int argc, char** argv) {

        Cy_SysDisableCM4();

        __enable_irq();

        {

          static uint32_t data[128] = {0};

          std::fill_n(data,128,0xDEADBEEF);

          int rc = Cy_Flash_WriteRow(reinterpret_cast<uint32_t>(board_flash_rows),data);

          while(rc != 0) {}

        }

        for(;;) {__WFI();}

        return 0;

      }

       

      Thoughts?

       

      Thanks.