- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have a question regarding CE195313.
Unless the Em_EEPROM_1_em_EepromStorage array in the FLASH area used by the Emulated EEPROM is set to 00 by the compiler and linker, CY_EM_EEPROM_BAD_CHECKSUM will be returned in the following line.
Can’t we set any initial value to Emulated EEPROM using compiler and linker?
Certainly, due to the structure of the Emulated EEPROM, it seems difficult to set arbitrary values in advance.
We have to do something like the sample code to give the initial value, right?
Best regards,
Yocchi
メッセージ編集者: Yoshiharu Ishii
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>Can’t we set any initial value to Emulated EEPROM using compiler and linker?
- Answer is “Yes”.
The initial value would be meant just a data to write on the top of the area for EEPROM.
Em_EEPROM_1_Write() is just a process to write data to Em_EEPROM_1, and eepromReturnValue is just a value to make sure whether writing to EEPROM is succeeded or not.
Em_EEPROM_1_Read() is also same, so there is nothing data to read if you didn’t put any data above.
So you can put some data you want into “array” in Em_EEPROM_1_Write(), and then it would be succeeded.
Infineon Technologies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>Can’t we set any initial value to Emulated EEPROM using compiler and linker?
- Answer is “Yes”.
The initial value would be meant just a data to write on the top of the area for EEPROM.
Em_EEPROM_1_Write() is just a process to write data to Em_EEPROM_1, and eepromReturnValue is just a value to make sure whether writing to EEPROM is succeeded or not.
Em_EEPROM_1_Read() is also same, so there is nothing data to read if you didn’t put any data above.
So you can put some data you want into “array” in Em_EEPROM_1_Write(), and then it would be succeeded.
Infineon Technologies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Ok. Thank you very much.
Best regards,
Yocchi