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.

CCS/LAUNCHXL-CC2640R2: Custom Board file issues, unresolved symbol TRNGCC26XX_config

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: CC2650

Tool/software: Code Composer Studio

I'm trying to create a custom board file for 5x5 package: https://e2e.ti.com/support/tools/ccs/f/81/p/928657/3431213#3431213

But I keep getting an error on "unresolved symbol TRNGCC26XX_config, first referenced in <whole-program>".

I tried following other forum posts like https://e2e.ti.com/support/wireless-connectivity/bluetooth/f/538/t/757498 but the problem persists.

Below is the build log:

**** Build of configuration FlashROM_StackLibrary for project vertFarm_v4_cc2640r2lp_app ****

"C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 8 all -O

Building file: "C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/app/ble_user_config.c"
Invoking: ARM Compiler
"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/bin/armcl" --cmd_file="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/config/build_components.opt" --cmd_file="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/config/factory_config.opt" --cmd_file="C:/CCS_panasonic/simple_peripheral_cc2640r2lp_stack_library/TOOLS/build_config.opt" -mv7M3 --code_state=16 -me -O4 --opt_for_speed=1 --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/Application" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/Startup" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/PROFILES" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/Include" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/controller/cc26xx_r2/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/rom" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/common/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_peripheral/src/app" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/dev_info" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/roles/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/roles" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/simple_profile/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/simple_profile" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/target" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/hal/src/target/_common" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/hal/src/target/_common/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/hal/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/heapmgr" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/osal/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/services/src/saddr" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/services/src/sdata" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/devices/cc26x0r2" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include" --define=DeviceFamily_CC26X0R2 --define=BOARD_DISPLAY_USE_LCD=0 --define=BOARD_DISPLAY_USE_UART=1 --define=BOARD_DISPLAY_USE_UART_ANSI=1 --define=CC2640R2_VF --define=CC26XX --define=CC26XX_R2 --define=ICALL_EVENTS --define=ICALL_JT --define=ICALL_LITE --define=ICALL_MAX_NUM_ENTITIES=6 --define=ICALL_MAX_NUM_TASKS=3 --define=ICALL_STACK0_ADDR --define=MAX_NUM_BLE_CONNS=1 --define=POWER_SAVING --define=STACK_LIBRARY --define=USE_ICALL --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL -g --c99 --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="ICallBLE/ble_user_config.d_raw" --obj_directory="ICallBLE" --cmd_file="configPkg/compiler.opt" "C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/app/ble_user_config.c"
Finished building: "C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/app/ble_user_config.c"

Building file: "../Startup/main.c"
Invoking: ARM Compiler
"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/bin/armcl" --cmd_file="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/config/build_components.opt" --cmd_file="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/config/factory_config.opt" --cmd_file="C:/CCS_panasonic/simple_peripheral_cc2640r2lp_stack_library/TOOLS/build_config.opt" -mv7M3 --code_state=16 -me -O4 --opt_for_speed=1 --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/Application" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/Startup" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/PROFILES" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/Include" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/controller/cc26xx_r2/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/rom" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/common/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_peripheral/src/app" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/dev_info" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/roles/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/roles" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/simple_profile/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/simple_profile" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/target" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/hal/src/target/_common" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/hal/src/target/_common/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/hal/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/heapmgr" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/osal/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/services/src/saddr" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/services/src/sdata" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/devices/cc26x0r2" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include" --define=DeviceFamily_CC26X0R2 --define=BOARD_DISPLAY_USE_LCD=0 --define=BOARD_DISPLAY_USE_UART=1 --define=BOARD_DISPLAY_USE_UART_ANSI=1 --define=CC2640R2_VF --define=CC26XX --define=CC26XX_R2 --define=ICALL_EVENTS --define=ICALL_JT --define=ICALL_LITE --define=ICALL_MAX_NUM_ENTITIES=6 --define=ICALL_MAX_NUM_TASKS=3 --define=ICALL_STACK0_ADDR --define=MAX_NUM_BLE_CONNS=1 --define=POWER_SAVING --define=STACK_LIBRARY --define=USE_ICALL --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL -g --c99 --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="Startup/main.d_raw" --obj_directory="Startup" --cmd_file="configPkg/compiler.opt" "../Startup/main.c"
Finished building: "../Startup/main.c"

Building file: "../Application/simple_peripheral.c"
Invoking: ARM Compiler
"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/bin/armcl" --cmd_file="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/config/build_components.opt" --cmd_file="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/config/factory_config.opt" --cmd_file="C:/CCS_panasonic/simple_peripheral_cc2640r2lp_stack_library/TOOLS/build_config.opt" -mv7M3 --code_state=16 -me -O4 --opt_for_speed=1 --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/Application" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/Startup" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/PROFILES" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/Include" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/controller/cc26xx_r2/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/rom" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/common/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_peripheral/src/app" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/dev_info" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/roles/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/roles" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/simple_profile/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/simple_profile" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/target" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/hal/src/target/_common" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/hal/src/target/_common/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/hal/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/heapmgr" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/osal/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/services/src/saddr" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/services/src/sdata" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/devices/cc26x0r2" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include" --define=DeviceFamily_CC26X0R2 --define=BOARD_DISPLAY_USE_LCD=0 --define=BOARD_DISPLAY_USE_UART=1 --define=BOARD_DISPLAY_USE_UART_ANSI=1 --define=CC2640R2_VF --define=CC26XX --define=CC26XX_R2 --define=ICALL_EVENTS --define=ICALL_JT --define=ICALL_LITE --define=ICALL_MAX_NUM_ENTITIES=6 --define=ICALL_MAX_NUM_TASKS=3 --define=ICALL_STACK0_ADDR --define=MAX_NUM_BLE_CONNS=1 --define=POWER_SAVING --define=STACK_LIBRARY --define=USE_ICALL --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL -g --c99 --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="Application/simple_peripheral.d_raw" --obj_directory="Application" --cmd_file="configPkg/compiler.opt" "../Application/simple_peripheral.c"
Finished building: "../Application/simple_peripheral.c"

Building file: "C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/src/icall.c"
Invoking: ARM Compiler
"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/bin/armcl" --cmd_file="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/config/build_components.opt" --cmd_file="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/config/factory_config.opt" --cmd_file="C:/CCS_panasonic/simple_peripheral_cc2640r2lp_stack_library/TOOLS/build_config.opt" -mv7M3 --code_state=16 -me -O4 --opt_for_speed=1 --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/Application" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/Startup" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/PROFILES" --include_path="C:/CCS_panasonic/vertFarm_v4_cc2640r2lp_app/Include" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/controller/cc26xx_r2/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/rom" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/common/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_peripheral/src/app" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/dev_info" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/roles/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/roles" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/simple_profile/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/profiles/simple_profile" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/target" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/hal/src/target/_common" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/hal/src/target/_common/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/hal/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/heapmgr" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/osal/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/services/src/saddr" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/services/src/sdata" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/devices/cc26x0r2" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include" --define=DeviceFamily_CC26X0R2 --define=BOARD_DISPLAY_USE_LCD=0 --define=BOARD_DISPLAY_USE_UART=1 --define=BOARD_DISPLAY_USE_UART_ANSI=1 --define=CC2640R2_VF --define=CC26XX --define=CC26XX_R2 --define=ICALL_EVENTS --define=ICALL_JT --define=ICALL_LITE --define=ICALL_MAX_NUM_ENTITIES=6 --define=ICALL_MAX_NUM_TASKS=3 --define=ICALL_STACK0_ADDR --define=MAX_NUM_BLE_CONNS=1 --define=POWER_SAVING --define=STACK_LIBRARY --define=USE_ICALL --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL -g --c99 --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="ICall/icall.d_raw" --obj_directory="ICall" --cmd_file="configPkg/compiler.opt" "C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/src/icall.c"
Finished building: "C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/src/icall.c"

Building target: "vertFarm_v4_cc2640r2lp_app.out"
Invoking: ARM Linker
"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/bin/armcl" --cmd_file="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/config/build_components.opt" --cmd_file="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/config/factory_config.opt" --cmd_file="C:/CCS_panasonic/simple_peripheral_cc2640r2lp_stack_library/TOOLS/build_config.opt" -mv7M3 --code_state=16 -me -O4 --opt_for_speed=1 --define=DeviceFamily_CC26X0R2 --define=BOARD_DISPLAY_USE_LCD=0 --define=BOARD_DISPLAY_USE_UART=1 --define=BOARD_DISPLAY_USE_UART_ANSI=1 --define=CC2640R2_VF --define=CC26XX --define=CC26XX_R2 --define=ICALL_EVENTS --define=ICALL_JT --define=ICALL_LITE --define=ICALL_MAX_NUM_ENTITIES=6 --define=ICALL_MAX_NUM_TASKS=3 --define=ICALL_STACK0_ADDR --define=MAX_NUM_BLE_CONNS=1 --define=POWER_SAVING --define=STACK_LIBRARY --define=USE_ICALL --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL -g --c99 --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi -z -m"vertFarm_v4_cc2640r2lp_app.map" --heap_size=0 --stack_size=256 -i"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/lib" -i"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include" --reread_libs --define=CC26X0ROM=2 --diag_suppress=16002-D --diag_suppress=10247-D --diag_suppress=10325-D --diag_suppress=10229-D --diag_suppress=16032-D --diag_wrap=off --display_error_number --warn_sections --xml_link_info="vertFarm_v4_cc2640r2lp_app_linkInfo.xml" --rom_model -o "vertFarm_v4_cc2640r2lp_app.out" "./Application/att_rsp.obj" "./Application/simple_peripheral.obj" "./Application/util.obj" "./Drivers/ECC/ECCROMCC26XX.obj" "./Drivers/RF/RFCC26XX_singleMode.obj" "./Drivers/TRNG/TRNGCC26XX.obj" "./ICall/icall.obj" "./ICall/icall_cc2650.obj" "./ICall/icall_user_config.obj" "./ICallBLE/ble_user_config.obj" "./ICallBLE/icall_api_lite.obj" "./PROFILES/devinfoservice.obj" "./PROFILES/gatt_uuid.obj" "./PROFILES/gattservapp_util.obj" "./PROFILES/peripheral.obj" "./PROFILES/simple_gatt_profile.obj" "./Startup/board.obj" "./Startup/ccfg_app_ble.obj" "./Startup/main.obj" -l"configPkg/linker.cmd" -l"C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/devices/cc26x0r2/driverlib/bin/ccs/driverlib.lib" -l"C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/kernel/tirtos/packages/ti/dpl/lib/dpl_cc26x0r2.aem3" -l"C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/drivers/lib/drivers_cc26x0r2.aem3" -l"C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/display/lib/display.aem3" -l"C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/grlib/lib/ccs/m3/grlib.a" -l"C:/CCS_panasonic/simple_peripheral_cc2640r2lp_stack_library/FlashROM_Library/ble_r2.symbols" -l"C:/CCS_panasonic/simple_peripheral_cc2640r2lp_stack_library/FlashROM_Library/lib_linker.cmd" -l"C:/CCS_panasonic/simple_peripheral_cc2640r2lp_stack_library/FlashROM_Library/simple_peripheral_cc2640r2lp_stack_library.lib" -l"C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/common/cc26xx/ccs/cc26xx_app.cmd" -llibc.a
<Linking>

undefined first referenced
symbol in file
--------- ----------------
TRNGCC26XX_config <whole-program>

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "vertFarm_v4_cc2640r2lp_app.out" not built

>> Compilation failure
makefile:186: recipe for target 'vertFarm_v4_cc2640r2lp_app.out' failed
gmake[1]: *** [vertFarm_v4_cc2640r2lp_app.out] Error 1
makefile:179: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****

Please help, I've honestly been trying to just do a pin config for weeks :(

  • Hi Yu, 

    I would recommend reading through the sections "TI Provided Board Files" and "Package Type and Board Files" to ensure that your project is configured properly. 

    https://dev.ti.com/tirex/content/simplelink_cc2640r2_sdk_4_10_00_10/docs/blestack/ble_user_guide/html/ble-stack-3.x/custom-hardware.html#ti-provided-board-files

    It is possible that you are not modifying the correct board file for your device, which could be why the solution you referenced is not working. Additionally, have you tried to run an out of the box example from the SDK on your custom hardware?

    Best Regards,
    Alec M

  • Yes, I have read through the sections "TI Provided Board Files" and "Package Type and Board Files". 

    First, which example board files should I first take as a reference? From the "Package Type and Board Files", it seems like I can use the CC2640R2_LAUNCHXL files ("The board file for CC2640R2_LAUNCHXL is made for the 7x7 mm QFN package using differential RF front end and internal biasing. To convert this board file to use for other smaller device packages (5x5 mm and 4x4 mm QFN), the board file will need to be modified since limited number of IO pins are available in the smaller packages.") or the CC2640R2DK_5XD files (It is recommended to start customizing board file(s) based on a reference design that is similar to your selected package type and RF configuration. For example a design for a 5x5 mm QFN package with a differential front end and external bias should use the CC2640R2DK_5XD board files as a reference.) . [The blue text is from the documentation.]

    Next, let's say I copy over the CC2640R2_LAUNCHXL board files, and follow the instructions to get three of my own board files, "Board.h", "MYBOARD.c" and "MYBOARD.h". Even before trying to change the pin config, I'm already getting "unresolved symbol" issues. Are you able to compile the project successfully? I'm using the 4.20.0.04 SDK, if that might be an issue.

    Thank you for your help :'D

  • Okay, now I'm just following the instructions, and the only changes are renaming the copied CC2640R2_LAUNCHXL board files. I'm still getting the same errors that I solved before.

    Below are the issues I faced for anyone else who's going through the same issues:

    Issue: After renaming all the CC2640R2_LAUNCHXL board files to "Board.h", "MYBOARD.c" and "MYBOARD.h",  you might get an error #35 #error directive: "***BLE USER CONFIG BUILD ERROR*** Unknown package type!" 

    Solution:  Follow the "Configuring the RF Front-End for Custom Hardware" section http://software-dl.ti.com/lprf/simplelink_cc2640r2_latest/docs/blestack/ble_user_guide/html/ble-stack-3.x/custom-hardware.html#sec-creating-a-custom-ble-app-rf-front-end-and-antennas. For example, for simple_peripheral project, in "MYBOARD.h" file, add a line of 

    #define CC2650EM_7ID

    For other RF configurations, see the link for more details.

    Issue: After you add the RF config, you get undefined symbols like "Board_initHook" and "TRNGCC26XX_config" as shown:

     undefined         first referenced
      symbol               in file     
     ---------         ----------------
     Board_initHook    <whole-program> 
     TRNGCC26XX_config <whole-program> 
     
    error #10234-D: unresolved symbols remain

    Solution:  To solve "Board_initHook" symbol, in your renamed "MYBOARD" directory for your custom board, open "CC2640R2_LAUNCHXL_fxns" and copy all the functions there, then paste them into your "MYBOARD.c" file. 

     

    However, I cannot solve the "TRNGCC26XX_config" symbol. There is no specific line in the error message to look for it either.

    I searched the whole project, and found that it's already defined in the "TRNGCC26XX.c" driver file? So what is happening?

  • Hi Yu,

    The board files can require a quite a bit of changes due to the reduce pin count on the 5x5. In the thread linked below, the solution has a set of board files that another TI engineer created for the 5x5 package. I know it can be a little confusing since they kept the file names as CC2640R2_LAUNCHXL.c, but they should work for a 5x5 example. Try it out and let me know if anything changes.

    https://e2e.ti.com/support/wireless-connectivity/bluetooth/f/538/p/567703/2081705#2081705

    Best Regards,
    Alec M

  • Thanks! Although that doesn't exactly solve the unresolved "TRNGCC26XX_config" symbol :(

    When I was trying to solve for the "TRNGCC26XX_config" issue, I found a forum post that I'm supposed to use the TRNG driver as the BLE-Stack (from sdk 2.40.00.32).  So I then used an older SDK (2.20.0.49) and the project could compile with my renamed board files. 

    Could I ask, is the unresolved "TRNGCC26XX_config" symbol is caused by using a newer SDK that doesn't have the TRNG driver version?

  • Hi Yu,

    Would you mind sharing the TRNG section of your board source file? 

    Best Regards,
    Alec

  • Sorry for the late reply. I've reverted to using an older SDK and everything seems to be working fine now.