This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2652RB: using external flash for application data

Part Number: CC2652RB


Hello,

We are using a CC2652RB DK and would like to use a portion of the external flash, normally used for external OAD, for application data storage. I found a header file with the following

#define EFL_USR_AREA_ADDR    EFL_SIZE_META*EFL_MAX_META
#define EFL_USR_AREA_SZ         EFL_IMG_SPACE_START - EFL_USR_AREA_ADDR

And assumed this was to reserve flash for application use. However I can not find this in the project for this processor.

Is there a way to do this? How the external flash is being used isn't obvious.

Thanks

  • Hello Allen,

    Please navigate to the BLE5-Stack User's Guide -> OAD -> Flash Layout for Off-Chip OAD to further understand how the external flash is utilized.  From flash_interface.h, given INTFLASH_PAGE_SIZE = 0x2000 and MAX_ONCHIP_FLASH_PAGES = 44, the upper 0x58000 of EFL_FLASH_SIZE = 0x100000 should be reserved for the application.  As OAD_EFL_MAX_META  = 4 and EFL_PAGE_SIZE = 0x1000, the lower 0x4000 is also reserved but leaves the remaining 0xA4000 (164 pages) in the middle free for application data storage.  You can refer to the OAD-enabled projects to understand how to read/write these pages.

    Regards,
    Ryan