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: Build Error -- CC2640R2F without 32.768K Crystal under cc2640r2_sdk_1_30_00_25

Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2640, BLE-STACK

Dear TI Expert,

One of my customer got a build error build in simple_peripheral project under simplelink_cc2640r2_sdk_1_30_00_25 for CC2640R2F without 32.768K.  Could you help to check it and give some advice? Thanks a lot.

Follow swra499b.pdf------Running Bluetooth® low energy on CC2640 Without 32 kHz Crystal.

Build OK  in ble_sdk_2_02_01_18

But failed with below condition

----------------------------------------------------------------------------------

BLE-STACK: simplelink_cc2640r2_sdk_1_30_00_25

IAR: 7.8.2

Project: simple_peripheral

Step:

1. Include rcosc_calibration.c, rcosc_calibration.h and ccfg_app_ble_rcosc.c files that are located at <sdk_install_dir>\examples\rtos\CC2640R2_LAUNCHXL\ble\common\cc26xx\rcosc or <sdk_install_dir>\src\common\cc26xx\rcosc.

2. Exclude ccfg_app_ble.c from build.

3. Add USE_RCOSC to Defined symbols

Error:

Error[Li005]: no definition for "HCI_EXT_SetSCACmd" [referenced from C:\ti\simplelink_cc2640r2_sdk_1_30_00_25\examples\rtos\CC2640R2_LAUNCHXL\blestack\
simple_peripheral\tirtos\iar\app\FlashROM\Obj\rcosc_calibration.o]

------------------------------------------------------------------------------------------------------------------

  • Hi Bruce,

    In the CC2640R2 SDK v1.30.00.25, there is an RCOSC configuration provided for simple_peripheral. To enable:
    1. Change the cc2640r2lp_stack project configuration to FlashROM_Library
    2. Change the cc2640r2lp_app project configration to FlashROM_StackLibrary_RCOSC

    This SDK was developed and tested with IAR 7.8.3 so if you run into any other errors, I would recommend upgrading. I was able to build the project without errors in IAR ARM 7.8.3.
  • Dear Rachel,
    Thanks for your help. I follow your guide in IAR7.8.2 and it works. But my customer need on-chip OAD which need separated stack and app.
    Could you help to check it on FlashROM build?
  • Dear TI Experts,
    I tried in latest version of IAR--8.11.1 and got the same result. Could you help to check the linker error under separated app/stack without 32K external crystal? thanks a lot.
  • Dear Rachel,
    Build is OK after I add #include "icall_api.h" in rcosc_calibration.c. I'll ask customer to test it on-board tmr.