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.

[参考译文] AM6442:CCS v20中的 AM64 MCU SDK、获取资源表错误的电路板配置

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1507503/am6442-am64-mcu-sdk-in-ccs-v20-fetch-board-configuraiton-for-resource-table-error

器件型号:AM6442
主题:SysConfig 中讨论的其他器件

工具/软件:

大家好!

将 AM64 MCU SDK 11.00.00.15与 CCS v20.1.1一起使用时、在按下中断配置的"Get RM data"按钮时、会在 SysConfig GPIO 部分引发错误。

小背景:
我们希望按照该主题中的说明更改 AM64的资源表: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1198105/faq-am64x-how-to-run-mcu-sdk-gpio_input_interrupt-example-for-r5fss0-0-with-linux-running-on-a53。 据我所知、更改后、按下该按钮时、应该将新资源投入到工程中。

在没有 CCS 的情况下直接启动 SysConfig 时、该按钮以某种方式起作用、但随后编译会引发错误。

我尝试了不同版本的 CCS 20.x 和 SysConfig 1.20+、但似乎也有相同的错误、似乎更像是与 MCU SDK 有关?

我的安装有问题吗? (我将启动一个干净的虚拟机、然后进行新的安装)

还是有一些基本错误?

要重现:

在 CCS v20.x 中加载"mcu_plus_sdk_am64x_11_00_00_15" SDK 的"gpio_input_interrupt_am64x-evm_r5fss0-0_nortos"示例

打开 SysConfig、转到 GPIO、按"获取板配置"中的"获取 RM 数据"按钮。

此致、

Ergin

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

    小更新。


    在具有以下规格的虚拟机内部进行全新安装时、我会得到以下行为:

    规格:  

    操作系统: Windows 10

    - SDK: mcu_plus_sdk_am64x_11_00_00_15

    - CCS1281和 CCS2011

    - SysConfig:1.23.1

    以下实验的行为:

    1.CCS1281内的"gpio_input_interrupt_am64x-evm_r5fss0-0_nortos_ti-arm-clang"工程点击"Get RM data"即可正常运行并编译完成。

    2. CCS1281内的"hello_world_am64x-sk_r5fss0-0_freertos_ti-arm-clang"工程-> GPIO ->添加->启用中断配置->"get_rm data"工作正常并编译正常。

    3.  CCS2011内的"gpio_input_interrupt_am64x-evm_r5fss0-0_nortos_ti-arm-clang"工程点击"Get RM data"即可正常运行并编译良好。

    4. CCS2011中的"hello_world_am64x-sk_r5fss0-0_freertos_ti-arm-clang"工程 -> GPIO ->添加->启用中断配置->"get_rm data"工作正常并编译正常。

    5.  CCS2011内的"hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang"工程 -> GPIO ->添加->启用中断配置->"get_rm data"崩溃或引发前面提到的错误。

    6、进一步的零星测试表明,一些项目它工作了一些它没有。

    还不知道该做些什么...

    编辑:我刚认识到该错误在编译一次后发生、或者也编辑、syscfg 文件、特别是添加更多的 GPIO 中断等。 它发生在所有的项目,我可以告诉,也在旧的 CCS1281。

    谢谢

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

    尊敬的 Ergin:

    SDK 的源代码中似乎存在一些路径错误。 请应用以下补丁并重试一次。

    diff --git a/source/sysconfig/drivers/.meta/gpio/soc/getBoardConfigRm.js b/source/sysconfig/drivers/.meta/gpio/soc/getBoardConfigRm.js
    index 63a51981..ad68465d 100644
    --- a/source/sysconfig/drivers/.meta/gpio/soc/getBoardConfigRm.js
    +++ b/source/sysconfig/drivers/.meta/gpio/soc/getBoardConfigRm.js
    @@ -154,7 +154,7 @@ try {
     }
     
     try {
    -    var cfg = path.resolve(dir, `../../../sciclient/sciclient_default_boardcfg/${soc}/sciclient_defaultBoardcfg_rm.c`)
    +    var cfg = path.resolve(dir, `../../../../../drivers/sciclient/sciclient_default_boardcfg/${soc}/sciclient_defaultBoardcfg_rm.c`)
         var cfgData = fs.readFileSync(cfg, "utf-8");
     } catch (err) {
         writeErrorLog("Board Cfg File Read Error !!\n" + err);
    diff --git a/source/sysconfig/drivers/.meta/gpio/v0/gpio_v0.syscfg.js b/source/sysconfig/drivers/.meta/gpio/v0/gpio_v0.syscfg.js
    index 50b35bc3..dc2dc677 100644
    --- a/source/sysconfig/drivers/.meta/gpio/v0/gpio_v0.syscfg.js
    +++ b/source/sysconfig/drivers/.meta/gpio/v0/gpio_v0.syscfg.js
    @@ -296,11 +296,11 @@ function getConfigurables() {
                         let nodeCmd = common.getNodePath()
                         let products = system.getProducts()
                         let sdkPath = products[0].path.split("/.metadata/product.json")[0]
    -                    let filePath = sdkPath + "/source/drivers/.meta/gpio/soc/getBoardConfigRm.js"
    +                    let filePath = sdkPath + "/source/sysconfig/drivers/.meta/gpio/soc/getBoardConfigRm.js"
                         let socName = common.getSocName();
                         if (system.getOS() == "win") {
                             sdkPath = products[0].path.split("\\.metadata\\product.json")[0]
    -                        filePath = sdkPath + "//source//drivers//.meta//gpio//soc//getBoardConfigRm.js"
    +                        filePath = sdkPath + "//source//sysconfig//drivers//.meta//gpio//soc//getBoardConfigRm.js"
                         }
                         return {
                             command: nodeCmd,
    diff --git a/source/sysconfig/drivers/.meta/gpio/v0_1/gpio_v0_1.syscfg.js b/source/sysconfig/drivers/.meta/gpio/v0_1/gpio_v0_1.syscfg.js
    index 3f51684a..4af879a4 100644
    --- a/source/sysconfig/drivers/.meta/gpio/v0_1/gpio_v0_1.syscfg.js
    +++ b/source/sysconfig/drivers/.meta/gpio/v0_1/gpio_v0_1.syscfg.js
    @@ -187,11 +187,11 @@ function getConfigurables() {
                         let nodeCmd = common.getNodePath()
                         let products = system.getProducts()
                         let sdkPath = products[0].path.split("/.metadata/product.json")[0]
    -                    let filePath = sdkPath + "/source/drivers/.meta/gpio/soc/getBoardConfigRm.js"
    +                    let filePath = sdkPath + "/source/sysconfig/drivers/.meta/gpio/soc/getBoardConfigRm.js"
                         let socName = common.getSocName();
                         if (system.getOS() == "win") {
                             sdkPath = products[0].path.split("\\.metadata\\product.json")[0]
    -                        filePath = sdkPath + "//source//drivers//.meta//gpio//soc//getBoardConfigRm.js"
    +                        filePath = sdkPath + "//source//sysconfig//drivers//.meta//gpio//soc//getBoardConfigRm.js"
                         }
                         return {
                             command: nodeCmd,
    

    请更新结果。

    我已使用 MCU+SDK v11.00和 CCS v12.8.1对此进行了测试、上面出现的问题似乎不会因上述更改而发生。

    此致、

    Tushar

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

    尊敬的 Tushar:

    感谢您提供补丁。 应用它并使用 CCS v12.8.1现在可行、但我们刚刚迁移到了 CCS 20。  

    在 CCS 20.x 上、该解决方案以某种方式无法正常工作。 这怎么可能是,这将是固定的东西吗?

    顺便说一下,在 Windows 上的补丁不起作用(有时在 Windows 上 git 有点奇怪),我不得不手动修改。 在 Linux 上、该补丁运行良好。

    此致、

    Ergin

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

    尊敬的 Ergin:

    从 AM64x MCU+SDK 文档来看、似乎 SDK 未使用最新的 CCS v20进行测试。 下一个 SDK 版本有望支持这一点。

    Windows 上的补丁无法正常工作(git 有时在 Windows 上有点奇怪),我不得不手动修改。 在 Linux 上、修补程序工作正常

    不确定 git tool 有什么问题。 我从 Windows 机器创建了修补程序、并在另一个 Windows 机器上进行了测试。 这对我来说很好。

    此致、

    Tushar

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

    Tushar: 我们是否在讨论 AM64x MCU+SDK v12的 CCS v20交互性框架?  我认为、对 MCU+SDK v 11.1 (估计为7月)进行重新回归测试可能是一项相当大的任务;另外还必须考虑工业通信 SDK 版本。

    此致

    Jim