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 program flash size

Other Parts Discussed in Thread: CC2640

Hi all,

We are developing an application based on TimeApp example for our custom board with CC2640. We have found a big limitation regarding to internal flash size. We are starting development and we have already reached the flash limit assigned to application: our program's size in flash is already over 60KB, and our estimations are that we probably will need much more than 150KB to implement our design (only for the application).

Could you give us any advice in how to proceed? We are studying alternatives like using 2 MCUs, since it seems that we can not use any other flash as memory for program, is that true?. Is there any program section we can move to external flash?. We have one connected by SPI, and we have looking over .cmd linker file, but we have not much experience on this. Moreover, with the numbers obtained it seems that there is not an issue of a little optimization (since we need more than the double of the current used space).

Any idea or suggestion is welcome!

Thank you very much

  • Moving this to "Bluetooth Low Energy Forum"

    Regards,
    Gigi Joseph.
  • Hi Sontono,

    Running from external flash is not easily done on the CC2640. You would have to compile your code for the external flash as if were located in RAM or in a fixed flash location and then fetch it into RAM or erase/write the program to that flash location. Using IAR instead of CCS might save you 20% or so but that seems not to be enough for your case.

    Another more commonly used option is to use the CC2640 as a network processor and interface it with a separate MCU running the application and the host side of the BLE communication.

    Regards,
    Svend
  • Hi Svend,
    Thank you very much for your response.
    We are now investigating the approach of using a second chip as the main MCU and using CC2640 to run BLE stack and, maybe, the code to deal with sensors (as described in point 5. of processors.wiki.ti.com/.../CC254X_WITH_EXT_MCU). It seems the more reasonable solution after our studies and your advices. Thanks a lot!.

    Regards,
    José Antonio Martínez.