PSOC 4 EEPROM Datasheet Error | Cypress Semiconductor
PSOC 4 EEPROM Datasheet Error
In the API description the following appears -
cystatus Em_EEPROM_Write (const uint8 srcBuf, const uint8 eepromPtr, uint16/uint32 byteCount)
This indicates the source buffer must be in code memory, which would not be generally useful.
In fact if the srcBuf is declared as a RAM location, not as const, the module works fine. So
this appears to be a datasheet error.
I have not checked the other datasheets, probably typed with same error.
Note this is also compounded by GCC after 2.5 (I gather) requiring the _attribute modifier be used
for placing stuff in code memory/FLASH. Which would make the const uint8 eepromPtr also typed wrong ?
Even though typed that way it does work. The open source compiler curse in action ?