Assign user data area in flash using ".cy_checksum_exclude"

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

cross mob
YoIs_1298666
Level 5
Level 5
250 sign-ins 100 replies posted 100 sign-ins

Hello,

I know that ".cy_checksum_exclude" excludes the Emulated EEPROM area from Checksum when using Bootloader. Neither Bootloader nor Emulated EEPROM is implemented, but I would like to use it to assign the address of CySysFlashWriteRow API.

If I specify it with it, Linker will automatically place the address to the end of the program FLASH.

Q1: Is there any particular problem?

Q2: And what is the description of ".cy_checksum_exclude" actually?

        Does the following of the Linker Script determine the address?

                 .cy_checksum_exclude : { KEEP(*(.cy_checksum_exclude)) } > rom

------------------------------------------------------------------------------------------------------------------------------

#define CY_TEST_FLASH_ROW ((uint32)InitParameter >> 7)

                         ...

uint8 rowPattern[CY_FLASH_SIZEOF_ROW];

volatile uint8 InitParameter[CY_FLASH_SIZEOF_ROW] CY_SECTION(".cy_checksum_exclude") __ALIGNED(CY_FLASH_SIZEOF_ROW) = {0u};

                         ...

returnValue = CySysFlashWriteRow(CY_TEST_FLASH_ROW, rowPattern);

                       ...

------------------------------------------------------------------------------------------------------------------------------

map file:

YoIs_1298666_0-1623041498590.png

 

Best regards,

Yocchi

0 Likes
3 Replies
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi,

Can you let us know why you are not using Emulated EEPROM.

Can you please explain your requirements more clearly.

Regards

Alakananda
0 Likes

Hello Alakananda-san,

Thank you very much for your reply.

The initial value of Emulated EEPROM cannot be set by Linker.
Initial values can be set in the array definition of CySysFlashWriteRow API.

Best regards,

Yocchi

0 Likes

Hello,

Someone know?

 

Best regards,

Yocchi

0 Likes