Emulated EEPROM with PSOC4

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ReMa_3807036
Level 2
Level 2
First like received

Hi,

I'm using PSoC Creator 4.3 with device PSOC4100S  CY8C4125AXI-S433, in my design I'm using Flash to emulate EEprom and I'm following the relative code example, and here I have a problem, the variable "Em_EEPROM_em_EepromStorage" within the generated file Em_EEPROM.c, is declarated only if defined "CY_PSOC6", and it is not here the case.

#if ((CY_PSOC6) && (Em_EEPROM_1_STORAGE_EM_EEPROM))

    CY_SECTION(".cy_em_eeprom") CY_ALIGN(CY_FLASH_SIZEOF_ROW)

    const uint8 Em_EEPROM_1_em_EepromStorage[Em_EEPROM_1_ACTUAL_SIZE] = {0u};

#endif /* ((CY_PSOC6) && (Em_EEPROM_1_STORAGE_EM_EEPROM)) */

Probably I'm wrong ... Have you any suggestions?

Thanks

Renato

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Renato-san,

Please READ the datasheet of Em_EEPROM.

In the page 2 it is written

002-Datasheet-Page2.JPG

Please read carefully after the line "For non-PSoC 6 devices,.."

Best Regards,

19-May-2020

moto

View solution in original post

0 Likes
6 Replies