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.

[参考译文] LP-EM-CC2340R53:在外设示例中启用 C++支持后、工程无法启动

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1571530/lp-em-cc2340r53-project-does-not-boot-up-when-c-support-is-enabled-in-peripheral-example

器件型号:LP-EM-CC2340R53


工具/软件:

您好、

我将 TI Zephyr fork v3.7.0-ti-8.40.00_ea (https://github.com/TexasInstruments/simplelink-zephyr/tree/v3.7.0-ti-8.40.00_ea) 用于目标评估板 LP_EM_CC2340R53。

我的工程涉及 C++源代码、但是当我尝试启用对 C++的支持时、该工程不会启动。

为了进一步进行实验、我尝试构建外设示例、并通过在 prj.conf 文件中添加 KConfig 宏来启用对 C++的支持

config_cpp=y
这再次导致外设工程无法启动。
我是否错过了一些配置、如何确保 C++源代码与 C 源代码一起安全运行
BTW:项目编译和链接成功、但不运行  
我将我的项目配置和环境详细信息附加到此处:
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/Users/ekb6fe/simplelink_zephyr/zephyr/samples/bluetooth/peripheral
-- CMake version: 4.0.3
-- Found Python3: C:/Users/ekb6fe/simplelink_zephyr/.venv/Scripts/python.exe (found suitable version "3.13.7", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/Users/usr/simplelink_zephyr/zephyr/.cache
-- Zephyr version: 3.7.0 (C:/Users/usr/simplelink_zephyr/zephyr)
-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
-- Board: lp_em_cc2340r53, qualifiers: cc2340r53
-- Found host-tools: zephyr 0.16.8 (C:/usr/ekb6fe/zephyr-sdk-0.16.8)
-- Found toolchain: zephyr 0.16.8 (C:/usr/ekb6fe/zephyr-sdk-0.16.8)
-- Found Dtc: C:/Users/usr/AppData/Local/Microsoft/WinGet/Packages/oss-winget.dtc_Microsoft.Winget.Source_8wekyb3d8bbwe/usr/bin/dtc.exe (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found BOARD.dts: C:/Users/usr/simplelink_zephyr/zephyr/boards/ti/lp_em_cc2340r53/lp_em_cc2340r53.dts
-- Generated zephyr.dts: C:/usr/ekb6fe/simplelink_zephyr/build/app/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/Users/usr/simplelink_zephyr/build/app/zephyr/include/generated/zephyr/devicetree_generated.h
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好:

    感谢您联系我们! 我会仔细研究一下、尽快回复您!

    此致、

    Tarek D

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

    您好:

    我尝试将此配置添加到 v3.7.0-ti-9.10.00_ea、但没有观察到该问题。 您能否尝试更新到最新版本、并告诉我这是否能解决问题?

    此致、

    Tarek D

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

    您好、这解决了我的问题! 感谢您告诉我。

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

    您好:

    我很高兴听到这个消息!

    此致、

    Tarek D