Parameter section

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LuBe_4654241
Level 4
Level 4
50 sign-ins 25 replies posted 25 sign-ins

Hi,

in my project I have reserved the last page to parameters of application, but every load of firmware by PSoc Creator this section is erased, How can I avoid this ?

I am using CY8C4146 MCU.

Best regards

LuBe

0 Likes
1 Solution
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi LuBe, 

The entire application flash will be erased during the programming sequence each time you are programming the device.

Would it be feasible for you to store these parameters in the SFlash region? SFlash will not be automatically erased during programming. These threads should provide further details regarding SFlash - 

CySysFlashWriteRow() vs CySysSFlashWriteUserRow() - PSoC 4 FLASH API difference

Is it possible to clear SFLASH memory while programming in PSoC 4?  

You can use CySysSFlashWriteUserRow() to store the parameters in the SFlash region. Please refer to page 66 of the PSoC 4 System Reference Guide.

Thanks and Regards,
Rakshith M B

View solution in original post

0 Likes
7 Replies