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.

[参考译文] CC2340R2:如何构建 CC2340R2示例代码。

Guru**** 1966425 points
Other Parts Discussed in Thread: SYSCONFIG
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1387461/cc2340r2-how-can-i-build-cc2340r2-sample-code

器件型号:CC2340R2
主题中讨论的其他器件:CC2340R5SysConfig

工具与软件:

您好、TI 专家。

我使用 版本:12.3.0.00005和 simplelink_lowpower_f3_sdk_8_10_01_02

我正在导入 basic_ble 工程。

并由 syscfg 修改为 CC2340R2RGE。

当我编译源代码时、会导致构建失败。

错误消息如下所示:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Building target: "basic_ble_LP_EM_CC2340R5_freertos_ticlang.out"
Invoking: Arm Linker
"C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-armllvm_2.1.3.LTS/bin/tiarmclang.exe" @"C:/ti/simplelink_lowpower_f3_sdk_8_10_01_02/source/ti/ble5stack_flash/config/build_components.opt" @"C:/ti/simplelink_lowpower_f3_sdk_8_10_01_02/source/ti/ble5stack_flash/config/factory_config.opt" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -Oz -DICALL_NO_APP_EVENTS -DCC23X0 -DNVOCMP_NWSAMEITEM=1 -DFLASH_ONLY_BUILD -DUSE_RCL -DNVOCMP_NVPAGES=6 -DFREERTOS -DNVOCMP_POSIX_MUTEX -gdwarf-3 -ffunction-sections -Wl,-m"basic_ble_LP_EM_CC2340R5_freertos_ticlang.map" -Wl,-i"C:/ti/simplelink_lowpower_f3_sdk_8_10_01_02/source" -Wl,-i"C:/Users/Weli/workspace_v12_CC2340_6_3/basic_ble_LP_EM_CC2340R5_freertos_ticlang/Release/syscfg" -Wl,-i"C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-armllvm_2.1.3.LTS/lib" -Wl,--reread_libs -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="basic_ble_LP_EM_CC2340R5_freertos_ticlang_linkInfo.xml" -Wl,--rom_model -o "basic_ble_LP_EM_CC2340R5_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_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:191: recipe for target 'basic_ble_LP_EM_CC2340R5_freertos_ticlang.out' failed
warning #10325-D: creating memory range $BOUND$0x7c000 to accommodate BOUND section ".TI.bound:flashBuf0"
"../lpf3_app_freertos.cmd", line 293: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment fails for section ".data" size 0xd2b. Available memory ranges:
SRAM size: 0x7000 unused: 0x2d6 max hole: 0x262
error #10010: errors encountered during linking; "basic_ble_LP_EM_CC2340R5_freertos_ticlang.out" not built
tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [basic_ble_LP_EM_CC2340R5_freertos_ticlang.out] Error 1
makefile:187: recipe for target 'all' failed
gmake: *** [all] Error 2
**** Build Finished ****
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

那么、如何解决该问题?

谢谢。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Weli:

    解决此问题的最简单方法是在 SysConfig 的 FreeRTOS 部分中减小堆的大小、例如、您可以将其设置为0x40F0。 完成这些修改后、我建议您在调试模式中测试代码并启用 ROV 以检查堆消耗并确保不会发生堆溢出、有关更多详细信息、请参阅 调试常见堆问题下的调试指南

    我希望这对您有所帮助、
    Tanguy

x 出现错误。请重试或与管理员联系。