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.

CC2745R10-Q1: adding adcbuf to basic ble

Part Number: CC2745R10-Q1
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

hi engineer

I'm trying to add adcbuf in basic ble with sysconfig tool. but my compiling always fail with 


Building target: "basic_ble_LP_EM_CC2745R10_Q1_freertos_ticlang.out"
Invoking: Arm Linker
"C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" @"C:/ti/simplelink_lowpower_f3_sdk_8_40_00_61/source/ti/ble5stack_flash/config/build_components.opt" @"C:/ti/simplelink_lowpower_f3_sdk_8_40_00_61/source/ti/ble5stack_flash/config/factory_config.opt" -mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -mlittle-endian -mthumb -O0 -DICALL_NO_APP_EVENTS -DCC23X0 -DUSE_HSM -DNVOCMP_NWSAMEITEM=1 -DFLASH_ONLY_BUILD -DNVOCMP_NVPAGES=6 -DFREERTOS -DNVOCMP_POSIX_MUTEX -gdwarf-3 -ffunction-sections -Wl,-m"basic_ble_LP_EM_CC2745R10_Q1_freertos_ticlang.map" -Wl,-i"C:/ti/simplelink_lowpower_f3_sdk_8_40_00_61/source" -Wl,-i"C:/Users/a0492435/workspace_27v840/basic_ble_LP_EM_CC2745R10_Q1_freertos_ticlang/Debug/syscfg" -Wl,-i"C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/lib" -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="basic_ble_LP_EM_CC2745R10_Q1_freertos_ticlang_linkInfo.xml" -Wl,--rom_model -o "basic_ble_LP_EM_CC2745R10_Q1_freertos_ticlang.out" "./syscfg/ti_ble_config.o" "./syscfg/ti_devices_config.o" "./syscfg/ti_radio_config.o" "./syscfg/ti_drivers_config.o" "./syscfg/ti_freertos_config.o" "./syscfg/ti_freertos_portable_config.o" "./main_freertos.o" "./app/Profiles/app_dev_info.o" "./app/Profiles/app_simple_gatt.o" "./app/app_broadcaster.o" "./app/app_central.o" "./app/app_connection.o" "./app/app_data.o" "./app/app_l2cap_coc.o" "./app/app_main.o" "./app/app_menu.o" "./app/app_observer.o" "./app/app_pairing.o" "./app/app_peripheral.o" "./common/BLEAppUtil/bleapputil_init.o" "./common/BLEAppUtil/bleapputil_process.o" "./common/BLEAppUtil/bleapputil_stack_callbacks.o" "./common/BLEAppUtil/bleapputil_task.o" "./common/Drivers/NV/crc.o" "./common/Drivers/NV/nvocmp.o" "./common/MenuModule/menu_module.o" "./common/Profiles/simple_gatt/simple_gatt_profile.o" "./common/Services/dev_info/dev_info_service.o" "./common/Startup/ble_user_config_stack.o" "./common/Startup/osal_icall_ble.o" "./common/Startup/rom_init.o" "./common/iCall/icall_POSIX.o" "./common/iCall/icall_cc23x0.o" "./common/iCall/icall_user_config.o" "./common/iCallBLE/ble_stack_api.o" "./common/iCallBLE/ble_user_config.o" "./common/iCallBLE/icall_api_lite.o" "../lpf3_app_freertos.cmd" -Wl,-lti_utils_build_linker.cmd.genlibs -Wl,-llibc.a
makefile:192: recipe for target 'basic_ble_LP_EM_CC2745R10_Q1_freertos_ticlang.out' failed
../../master/ELFLNK/collect.c:795:internal fatal error #10478: (.TI.bound:dmaChannel5ControlTableEntry)

INTERNAL ERROR: C:\ti\ccs1281\ccs\tools\compiler\ti-cgt-armllvm_3.2.2.LTS\bin\tiarmlnk had an internal inconsistency and aborted

This is caused by a defect in the TI Linker.
TI Customer Support may be able to suggest a workaround to avoid this.

Upgrading to the newest version of the compiler may fix this problem.

Contact TI on the E2E support forums at http://e2e.ti.com

We need to see this ENTIRE error message and a complete, reproducible
test case including ALL of the command-line options.
Include all of the object files, libraries, and linker command files
used to link the program.

tiarmclang: error: tiarmlnk command failed with exit code 2 (use -v to see invocation)
gmake[1]: *** [basic_ble_LP_EM_CC2745R10_Q1_freertos_ticlang.out] Error 2
gmake: *** [all] Error 2
makefile:188: recipe for target 'all' failed

**** Build Finished ****

could you guide me how to include such function?

  • Hello Simon, 

    I am following up with the R&D team to discuss the build problem. I will provide a response tomorrow (02/11). 

    Thanks, 
    Isaac

  • Hello Simon, 

    The error occurs due to LAES using channel 5 of the DMA. ADCbuf cannot use channel 5 of the DMA if LAES is using this channel. The only DMA channels available for assignment to the ADCbuf in SysConfig are channel 3 and 5. Channel 3 is being used by the XDS110 UART. 

    Alternatively, ADCbuf can use DMA channel 8-11, but this is not selectable within SysConfig. 

    To change the ADCbuf DMA channel to 8-11 please see the ADCBufLPF3_HWAttrs

    I edited the SysConfig generated files (ti_drivers_config.h, and ti_drivers_config.c) for DMA channel 8 and was able to build the project. 

    Disabling LAES would allow for DMA channel 5 to be used, but I did not attempt this. 

    Thanks, 

    Isaac