cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

New Contributor II

hello everyone, about Flash CY8C4126AXI-S433, is it possible to create 2 different flash memory banks?

regards

Henry

0 Likes
Reply
7 Replies
Moderator
Moderator

Hi Henry,

1. Can you please elaborate more about your query/requirement?

2. Are you asking whether you can include two Emulated EEPROM components in your application? The answer is yes. Please find the attached reference project.

Please update if this is not you are looking for.

Thanks

Ganesh

0 Likes
Reply
New Contributor II

hello,

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

0 Likes
Reply
Moderator
Moderator

Hi,

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.

https://www.cypress.com/documentation/application-notes/an73854-psoc-introduction-bootloaders

Can you please let us know how much memory do you need that need not to be erased even after programming?

Thanks

Ganesh

0 Likes
Reply
New Contributor II

46 *2= 84 Byte

0 Likes
Reply
New Contributor II

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

0 Likes
Reply
New Contributor II

Hello

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

<https://community.cypress.com/?et=watches.email.thread>

>

Flash CY8C4126AXI-S433

reply from GaneshD_41

<https://community.cypress.com/people/GaneshD_41?et=watches.email.thread>

in /PSoC 4 MCU/ - View the full discussion

<https://community.cypress.com/message/239494?et=watches.email.thread#239494>

>

0 Likes
Reply
Moderator
Moderator

Hi Henry,

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:

sflash.PNG

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:

https://www.cypress.com/file/409516/download

Thanks

Ganesh

0 Likes
Reply