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.

CC2652R7: Adding offchip OAD to existing application fails to build.

Part Number: CC2652R7
Other Parts Discussed in Thread: CC2650, SYSBIOS, , SYSCONFIG

Tool/software:

Hi,

I am following the guide in the BLE5 stack Training module (Bluetooth Low Energy Enhanced Over the Air Download (OAD) Advanced) for adding the off-chip OAD feature to an existing application. After following all the steps in the tutorial, I am getting a build error as follows:

Building target: "multi_role_LP_CC2652R7_test1.out"
Invoking: Arm Linker
"C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" @"C:/ti/simplelink_cc13xx_cc26xx_sdk_8_30_01_01/source/ti/ble5stack/config/build_components.opt" @"C:/ti/simplelink_cc13xx_cc26xx_sdk_8_30_01_01/source/ti/ble5stack/config/factory_config.opt"  -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mlittle-endian -mthumb -Oz -DSECURITY -DFLASH_ROM_BUILD -DNVOCMP_NWSAMEITEM=1 -DHEAPMGR_CONFIG=0x80 -DHEAPMGR_SIZE=0x0 -gdwarf-3 -march=armv7e-m -Wl,-m"multi_role_LP_CC2652R7_test1.map" -Wl,-i"C:/ti/simplelink_cc13xx_cc26xx_sdk_8_30_01_01/source" -Wl,-i"C:/ti/simplelink_cc13xx_cc26xx_sdk_8_30_01_01/kernel/tirtos7/packages" -Wl,-i"C:/Users/royce/workspace_v12/multi_role_LP_CC2652R7_test1/Release/syscfg" -Wl,-i"C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/lib" -Wl,--reread_libs -Wl,--define=FLASH_ROM_BUILD=2 -Wl,--define=OAD_IMG_E=1 -Wl,--define=SECURITY -Wl,--diag_suppress=16002-D -Wl,--diag_suppress=10247-D -Wl,--diag_suppress=10325-D -Wl,--diag_suppress=10229-D -Wl,--diag_suppress=16032-D -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="multi_role_LP_CC2652R7_test1_linkInfo.xml" -Wl,--rom_model -o "multi_role_LP_CC2652R7_test1.out" "./bim_util.o" "./syscfg/ti_ble_config.o" "./syscfg/ti_devices_config.o" "./syscfg/ti_radio_config.o" "./syscfg/ti_drivers_config.o" "./syscfg/ti_sysbios_config.o" "./Application/board_key.o" "./Application/multi_role.o" "./Application/multi_role_menu.o" "./Application/two_btn_menu.o" "./Drivers/NV/crc.o" "./Drivers/NV/nvocmp.o" "./OAD/crc32.o" "./OAD/flash_interface_ext_rtos_NVS.o" "./OAD/oad.o" "./OAD/oad_image_header_app.o" "./Profiles/devinfoservice.o" "./Profiles/simple_gatt_profile.o" "./Startup/main.o" "./Startup/osal_icall_ble.o" "./Startup/rom_init.o" "./common/Util/util.o" "./iCall/icall.o" "./iCall/icall_cc2650.o" "./iCall/icall_user_config.o" "./iCallBLE/ble_user_config.o" "./iCallBLE/ble_user_config_stack.o" "./iCallBLE/icall_api_lite.o" "../cc13x2x7_cc26x2x7_app_tirtos7.cmd"  -Wl,-lti_utils_build_linker.cmd.genlibs -Wl,-llibc.a 
makefile:179: recipe for target 'multi_role_LP_CC2652R7_test1.out' failed
 
 undefined                            first referenced            
  symbol                                  in file                 
 ---------                            ----------------            
 ti_sysbios_gates_GateMutex_construct ./syscfg/ti_sysbios_config.o
 ti_sysbios_gates_GateMutex_enter     ./syscfg/ti_sysbios_config.o
 ti_sysbios_gates_GateMutex_leave     ./syscfg/ti_sysbios_config.o

The tutorial I am following is this: https://dev.ti.com/tirex/explore/node?node=A__AdzaR5YxHU3-EzX70EuRBg__com.ti.SIMPLELINK_ACADEMY_CC13XX_CC26XX_SDK__AfkT0vQ__LATEST

I am able to build and run the onchip OAD project on the Launchpad. But always getting this error for the offchip project.

The error disappears when I comment out the call to the OAD_open() in the init function.

Please help me fix the issue.