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.

[FAQ] [参考译文] [常见问题解答] CCS-AM261X:无法在 MCU-PLUS-SDK 工作区中导入网络(enet-cpsw)示例

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1492074/faq-mcu-plus-sdk-am261x-unable-to-import-networking-enet-cpsw-examples-in-ccs-workspace

器件型号:MCU-PLUS-SDK

工具与软件:

尊敬的 TI 专家:

我无法从 AM261x MCU+ SDK 在 CCS 工作区中导入网络(Enet CPSW)示例。

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

    您好!

    请按照以下步骤从 MCU+ SDK 在 CCS 工作区中导入网络(Enet CPSW)示例:

    1. 在 MCU+ SDK 中、找到要导入的网络示例。 如果您无法找到基于 enet-cpsw 的网络示例、请遵循此常见问题 解答:[常见问题解答:AM261x]无法在 AM261x MCU+ SDK 中找到网络(enet-cpsw)示例
    2. 在 SDK 中、找到  Makefile_projectspec  和  example.projectspec  文件夹。
      例如、如果您尝试导入  Enet_layer2_cpsw  示例:  
      示例路径:  /source/networking/enet/core/examples/enet_layer2_cpsw
      Makefile_projectspec 路径:  /source/networking/enet/core/examples/enet_layer2_cpsw/am261x-lp-dp83826/r5fss0-0_freertos/ti-arm-clang/makefile_projectspec
      example.projectspec 路径:  /source/networking/enet/core/examples/enet_layer2_cpsw/am261x-lp-dp83826/r5fss0-0_freertos/ti-arm-clang/example.projectspec
    3. 现在、在上述两个文件中、按如下方式更新"project name":
      1. example.projectspec
        在中 标记、找到"name"参数并按如下方式对其进行更新:
        旧名称:

        # OLD NAME
        name = "enet_l2_cpsw_am261x-lp-dp83826/am261x-lp_r5fss0-0_freertos_ti-arm-clang"
        
        # NEW NAME
        name = "enet_l2_cpsw_am261x-lp-dp83826_am261x-lp_r5fss0-0_freertos_ti-arm-clang"

        更新后的名称应如下所示:


      2. Makefile_projectspec
        对于 PROJECT_NAME 变量、按如下所示修改名称:
        # OLD NAME
        PROJECT_NAME=enet_l2_cpsw_am261x-lp-dp83826/am261x-lp_r5fss0-0_freertos_ti-arm-clang
        
        # NEW NAME
        PROJECT_NAME=enet_l2_cpsw_am261x-lp-dp83826_am261x-lp_r5fss0-0_freertos_ti-arm-clang

        更新后的名称应如下所示:


    现在、重新打开您的 CCS 工作区并尝试使用更新后的工程名称导入相同的示例。

    注意: 此问题是由 CCS 解析从 projectspec 文件获取的工程名称中的"/"字符的方式引起的。 上述步骤可处理工程名称更改。 这会在 MCU+ SDK v10.02中得到妥善修复、这意味着在较新的 SDK 版本(v10.02及更高版本)中导入示例时不需要此权变措施。

    此致、
    Shaunak Deshpande.