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

cross mob

[CCGx Power SDK] CHANG FLASH LAYOUT IF BOOTLOADER HAVE TO BECUSTOMIZED

[CCGx Power SDK] CHANG FLASH LAYOUT IF BOOTLOADER HAVE TO BECUSTOMIZED

ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

CCGx POWER SDK DEFALUT FLASH LAYOUT:

ShifangZ_26_0-1631241435453.png

The First ROW of application shall be correct and the value of those value define/pre-calculate shall be matched. 

 (For example, Original CYPD3171 example code using below default values)

1) Manual application placement address.

ShifangZ_26_1-1631242029607.png

 

2) CY_APPL_ORIGIN in  cm0gcc.ld.

ShifangZ_26_2-1631242306665.png

 

3) CCG_BOOT_LOADER_LAST_ROW in  flash_config.h

ShifangZ_26_3-1631242411592.png

 

<HOW TO CALCULATE ABOVE THREE VALUES?>

Step 1: Confirm the Application image placement address from the HEX file of bootloader.  (From the bootloader HEX file, you can select the row of below after the bootloader. ) For example, 0x00001300.

Step 2: Use 0x1300 as application first row, and then, you can get CY_APPL_ORIGIN = change HEX format to DEC format of 0x1300 = 4864.

Step 3: CCG_BOOT_LOADER_LAST_ROW +1 = (Application image placement address)/0x80. CCG_BOOT_LOADER_LAST_ROW = 0x25.

0 Likes
530 Views