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.

CC2640R2F: BLE5 Simple Peripheral, reduce or optimize code size

Part Number: CC2640R2F

Hi BLE experts, 

My customer is developing their app based on BLE5 simple_peripheral project, however this example already took 95% of the space. Could you give some advice for reducing / optimizing the space usage? thanks a lot!

Due to tight schedule, CC2642 is not considered for now.

Regards,

Jo

  • Do they really need the BLE 5 feature? if not, they can start with ble simple_peripheral project.

    They can remove the display driver and disable bondmgr

    To disable gapbondgmr, please go to stack project-->Tools folder-->build_config.opt, comment out
    -DGAP_BOND_MGR

    To remove display driver, go to app project-->Tools-->defines--> cc2640r2lp_app_FlashROM_StackLibrary.opt
    -DBOARD_DISPLAY_USE_UART=0
    -DBOARD_DISPLAY_USE_UART_ANSI=0
    -DDisplay_DISABLE_ALL