[CCGx Power SDK] CHANG FLASH LAYOUT IF BOOTLOADER HAVE TO BECUSTOMIZED
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
CCGx POWER SDK DEFALUT FLASH LAYOUT:
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.
2) CY_APPL_ORIGIN in cm0gcc.ld.
3) CCG_BOOT_LOADER_LAST_ROW in flash_config.h
<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.