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.

[参考译文] CC2642R:基于 simple_peripheral 项目的定制板上的新项目

Guru**** 2538955 points
Other Parts Discussed in Thread: SYSCONFIG

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/986729/cc2642r-new-project-on-custom-boards-based-on-the-simple-simple_peripheral-project

器件型号:CC2642R
Thread 中讨论的其他器件:SysConfig

您好!

我使用的是最新的 cc2642 SDK 04.40.04.04、以前我们使用的是没有系统配置的旧版本、 我们要实现的目标是运行具有新 SDK 的旧项目、为此、我需要创建在 ti\simplelink_cc13x2_26x2_sdk_4_40_04_04\source\ti\ble5stack 板和目标中执行的项目板、并在项目设置中更改 SysConfig 中的板名称。

但是、由于 syscfg 使用的基础脚本中不支持电路板名称、projcet 将无法运行  

我的问题是如何使用自定义电路板配置、因为我们需要在 SDK 中定义多个电路板、以前我们设法在   source\ti\ble5stack 板和目标中实现了这一点  

如果我们由于 SysConfig 而无法执行此操作、我们如何禁用此功能以添加自定义板?

请提前提供帮助和感谢、

Jameel Magzal

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

    您好、Jameel、

    我假设最适合您的解决方案是可以选择从编译中排除 SysConfig 生成的某些文件。

    请告诉我们它是否有用、

    此致、

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

    您好 Clement、

    感谢您的快速回复、我尝试了您的建议、但是当我使用自定义电路板名称时无法访问此页面、整个 SysConfig 页面无法加载、并且我收到了以下错误:

    "C:/ti/ccs1010/ccs/utils/sysconfig_1.7.0/sysconfig_cli.bat" -b "/ti/boards/.meta/CC26X2R1_BIOPOT" -s "C:/ti/simplelink_cc13x2_26x2_sdk_4_40_04_04/.metadata/product.json" -s "C:/ti/simplelink_cc13x2_26x2_sdk_4_40_04_04/.metadata/product.json" -o "syscfg" "../simple_peripheral_oad_onchip.syscfg"
    Running script...
    subdir_rules.mk:9: recipe for target 'build-2075553567' failed
    Error: Exception occurred calling scripting.addModule()
        at Object.r [as addModule] (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\src\pinmux\services\scripting\scriptingGuard.ts:34:10)
        at eval (C:\development\Test\Embedded_NewSDK\simple_peripheral_oad_onchip_CC26X2R1_LAUNCHXL_tirtos_ccs\simple_peripheral_oad_onchip.syscfg:146:26)
        at scriptFunc (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\src\pinmux\services\scripting\runScript.ts:107:26)
        at Object.cb [as withDeprecatedAccess] (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\src\pinmux\services\deprecatedAccessGuard.ts:14:10)
        at Object.withDeprecatedAccess [as runAsUserScript] (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\src\pinmux\services\scripting\scriptingGuard.ts:49:3)
        at runAsUserScript (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\src\pinmux\services\scripting\runScript.ts:107:4)
        at iteratee (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\node_modules\lodash\lodash.js:516:1)
        at Function.baseEach (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\node_modules\lodash\lodash.js:9343:1)
        at Object.each [as runScript] (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\src\pinmux\services\scripting\runScript.ts:105:5)
        at <anonymous>
    Caused by: Error: RadioConfig: Unknown board [CC26X2R1_TestBoard]
        at Object.getBoardName (C:\ti\simplelink_cc13x2_26x2_sdk_4_40_04_04\source\ti\devices\radioconfig\.meta\radioconfig_common.js:141:19)
        at eval (C:\ti\simplelink_cc13x2_26x2_sdk_4_40_04_04\source\ti\devices\radioconfig\.meta\rfdesign.syscfg.js:59:22)
        at loaderFunc (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\src\pinmux\services\resources\metaContentLoaders\resourceLoader.ts:238:45)
        at Object.func [as internalBoundary] (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\src\pinmux\services\niceExceptions.ts:42:10)
        at t.ResourceLoader.internalBoundary [as loadResource] (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\src\pinmux\services\resources\metaContentLoaders\resourceLoader.ts:238:22)
        at t.ResourceLoader.loadResource [as getResource] (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\src\pinmux\services\resources\metaContentLoaders\resourceLoader.ts:332:15)
        at U.getResource [as loadModule] (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\src\pinmux\services\resources\runtime.ts:431:41)
        at U.loadModule [as getModuleMgr] (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\src\pinmux\services\resources\runtime.ts:506:34)
        at getModuleMgr (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\src\pinmux\services\scripting\modules.ts:23:28)
        at func (C:\ti\ccs1010\ccs\utils\sysconfig_1.7.0\dist\webpack:\src\pinmux\services\scripting\scriptingGuard.ts:32:45)
    gmake: *** [build-2075553567] Error 1
    我通过  在 radioconfig_common.js 中添加一些代码来解决错误:

    否则(boardName.includes("_TestBoard)){
    boardName ="LAUNCHXL-"+ boardName.replace("_TestBoard"、"");
    boardName = boardName.replace("_"、"-");

    不确定它是否能正常工作、因为 我需要测试应用  

    请告诉我 在这里所做的工作是否有任何问题  

    此致、

    Jameel  

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

    您好、Jameel、

    很好的发现 这对我来说是正确的。

    此致、

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

    看起来不起作用、board.h 文件中定义的电路板仍然是 launchpad 电路板、而不是我的测试板、不确定接下来要做什么、因为我们的所有项目都有自己的电路板定义。

    没有人尝试根据 launchpad 添加新电路板、但使用新名称?   

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

    您好、Jameel、

    您可能需要按 此处所述完全禁用 SysConfig

    此致、