Hi, thanks for reading this discussion. My plan is quite simple : Write EEPROM data and Read from it.
I want to finish this project by NOT using UART communication. So I declare variable, initialize it using read data and start debugging mod. Finially, I add watch function to val variable so that I can see how val variable change.
Like this below:
val = Em_EEPROM_1_Read(cnt,&array,4); <<<----- add watch
sprintf(buf,"eeprom is %d \n\r", array);
I expected the result that val is gonna be 0x33 data, but only I have is 0x00.
Is there any wrong with my process?? Or PSoC does not have this function
Solved! Go to Solution.
Hi @bugkiller ,
The Emulated EEPROM can work from both CM0+ and CM4 cores. Please find the attached code example in which CM0+ is used for writing and reading from the emulated EEPROM. Please check if this example is working on your side.
From your explanation, I understood that you are trying to emulate flash as EEPROM. There is a dedicated region for emulated EEPROM in the PSoC device. You can use this region for storing your data. If the size of this region is not sufficient for your requirement, you can use the flash memory as emulated EEPROM memory also.
To use a dedicated emulated EEPROM region, you can select the option for use Emulated EEPROM as yes as shown in the image below. Please let us know if you can use this dedicated memory.
I also saw a "sprintf(buf,"eeprom is %d \n\r", array);" in your code .Is this printing correct value?
Please refer to the attached project and try make changes in your project accordingly.
Hi, @Gautami_12 thanks for the answer. But this is not what I'm looking for. example that you are gave to me is for PSoC6 MCU, and sorry I don't metion in the topic, but I'm using CY8CKIT-042-BLE-A development tool. I just want to know is there any way that can read stored EEPROM data without UART serial comm(like debugg console).