if i use this example, the emulated eeprom is canceled when i program the micro? this is my problem, having 2 emulated eeprom and that when I program the micro the data must remain stored in the emulated eeprom
The Emulated EEPROM is nothing but the Flash memory inside the PSoC. During programming, the complete flash gets erased. So the contents present in Emulated EEPROM also gets erased.
To avoid this, you can use Bootloader, bootloadable project pair and store your information in check sum exclude region. In this case you have to bootload your new application everytime when you want to load the new application.
Please refer Getting started with bootloader for more information.
Can you please let us know how much memory do you need that need not to be erased even after programming?
I Need an example if it is possible, but the bootloader needs a pin where to put a button to activate the bootloader, is that correct? unfortunately I have no more free pins for a boot button, if necessary
I need 46 *2= 84 Byte, need not to be erased even after programming
I Need an example if it is possible, but the bootloader needs a pin
where to put a button to activate the bootloader, is that correct?
unfortunately I have no more free pins for a boot button, if necessary
I need46 2= 84 Byte,need not to be erased even after programming*
Il 18/06/2020 06:56, GaneshD_41 ha scritto:
Cypress Semiconductor logo <http://www.cypress.com>
Cypress Developer Community
reply from GaneshD_41
in /PSoC 4 MCU/ - View the full discussion
Apologies for the delay in response.
Since you need small amount of data to be stored across programming cycles, you can store the data in the User SFLASH. The size of user SFLASH in PSoC 4100S device is 1024 bytes. The data stored in user SFLASH will retain even after erasing the FLASH.
Please refer the system reference guide attached with this email to get the SFLASH APIs. You can also refer the attached project. The API is given below:
You can give row number as 0-3. For more information on SFLASH rows, please refer PSoC 4 Programming specifications application note page number 5 obtained from link below: