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.

CC2640 8k cache RAM

Other Parts Discussed in Thread: CC2640

Hi,

We are using CC2640 with multi role,we are in shortage of FLASH and RAM.

Currently we have 20k of RAM is there a possibility to use extra 4k of RAM from 8k Cache memory in order to make the total RAM usage as 24k (20k SRAM +4k Cache(out of 8k cache))

Please provide your thoughts.

Regards,

Neil

  • Hi Neil,

    This is possible. If you're working with the multirole project from github:

    1. Buld Config -> Set Active -> FlashROM-CacheAsRAM

    2. Add the following to main():

    // retain cache during standby

    Power_setConstraint(PowerCC26XX_SB_VIMS_CACHE_RETAIN);

    Power_setConstraint(PowerCC26XX_NEED_FLASH_IN_IDLE);


    If you want to add additional files or objects to GPRAM, you have to alter the linker file (cc26xx_app_gpram.cmd). Please see this wiki article on linker files.