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.

[参考译文] MCU-PLUS-SDK-AM243X:lwip Enet icssg 定制集成

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1159210/mcu-plus-sdk-am243x-lwip-enet-icssg-custom-integration

器件型号:MCU-PLUS-SDK-AM243X

您好!

我想使用配置为交换机的 Enet 网络驱动程序与定制板中的 ICSSG 结合使用。 因此、我 开始 调整 enet_lwip_icssg 示例(最新的8.3 SDK 公开发布版本)、并可以使其运行、但我有一些问题/疑问。   

我使用 了这个问题中提到的修补程序。 该补丁何时会集成到 SDK 中?

-我们的板使用 ethphys 的 MII/Standard,因此 我必须更改函数"sdk/source/networking/enet/core/src/per/icssg.c:Icssg_initCfg()"。 如何在不更改 SDK 的情况下覆盖应用程序中的此设置?

我 根据 这条指令集成了以太网 phy (dp83826),但 步骤“在 EnetPhy_Drv 位于 <ENET_LLD>/src/phy/enetphy.c的主 PHY 驱动程序中将类型变量声明为 extern。 此外、将其添加到 gEnetPhyDrvs 数组中。" 不再是最新的。 "gEnetPhyDrvs array" 现在位于生成的文件中。 那么、在不手动编辑 SDK 或生成的文件的情况下添加驱动程序的正确方法是什么?

-仅为了澄清一下、如果电路板正在运行并且未连接端口、我会看到无限重复出现这种"超时-重置-配置-。。" 图形。 这是正确的行为还是我的配置错误?  

 

EnetPhy_phyTimeout: PHY 0: timeout has occurred
EnetPhy_setNextState: PHY 0: NWAY_WAIT -> FOUND (0 ticks)
GenericPhy_reset: PHY 0: reset
EnetPhy_setNextState: PHY 0: FOUND -> RESET_WAIT (10 ticks)
GenericPhy_isResetComplete: PHY 0: reset is complete
EnetPhy_setNextState: PHY 0: RESET_WAIT -> ENABLE (0 ticks)
EnetPhy_enableState: PHY 0: enable
EnetPhy_enableState: PHY 0: req caps: FD100 HD100 FD10 HD10 
EnetPhy_enableState: PHY 0: PHY caps: FD100 HD100 FD10 HD10 
EnetPhy_enableState: PHY 0: MAC caps: FD1000 FD100 HD100 FD10 HD10 
EnetPhy_enableState: PHY 0: refined caps: FD100 HD100 FD10 HD10 
EnetPhy_enableState: PHY 0: PHY is NWAY-capable
EnetPhy_enableState: PHY 0: setup NWAY
EnetPhy_setupNway: PHY 0: NWAY advertising: FD100 HD100 FD10 HD10 
EnetPhy_setupNway: PHY 0: config is needed
EnetPhy_setupNway: PHY 0: restart autonegotiation
EnetPhy_setNextState: PHY 0: ENABLE -> NWAY_START (50 ticks)
EnetPhy_setNextState: PHY 0: NWAY_START -> NWAY_WAIT (80 ticks)

感谢您抽出宝贵的时间、为您解决问题。

此致

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

    您好 Ben、

    [引用 userid="539733" URL"~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1159210/mcu-plus-sdk-am243x-lwip-enet-icssg-custom-integration "]此修补程序何时集成到 SDK[/quot]

    它将是 SDK 版本8.5的一部分、计划在2022年12月中旬之前发布。

    [引用 userid="539733" URL"~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1159210/mcu-plus-sdk-am243x-lwip-enet-icssg-custom-integration "]如何在不更改 SDK[/quot]的情况下覆盖应用程序中的此设置

    从 SDK 8.3开始、您可以使用 位于 examples\networking\lwip\enet_lwip_icssg\test_enet_icssg.c 的 EnetApp_updateIcsgInitCfg 函数从应用程序更新此配置

    [引用 userid="539733" URL"~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1159210/mcu-plus-sdk-am243x-lwip-enet-icssg-custom-integration "]那么,在不手动编辑 SDK 或生成的文件的情况下添加驱动程序的正确方法是什么?

    请访问 https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/latest/exports/docs/api_guide_am243x/enet_migration_guide_top.html#CustomBoardSupport 、将 phy 驱动程序添加到您的定制板。 另外、要集成您的 dp83826 phy、请使用以下命令: https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/latest/exports/docs/api_guide_am243x/enet_migration_guide_top.html#ExternalPhyManagement

    [引用 userid="539733" URL"~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1159210/mcu-plus-sdk-am243x-lwip-enet-icssg-custom-integration 仅为了说明、如果电路板正在运行且端口未连接、我会在无限重复中看到"超时-重置-配置..." 图形。 这是正确的行为还是我的配置错误?  [/报价]

    请尝试上述建议、并告诉我它是否适合您以及您是否仍然看到这些打印件。

    BR

    Nilabh A.

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

    您好 Nilabh、

    感谢您的快速响应。

    "定制板"选项正是我所需要的。 我 实施了这些更改、但仍然看到此打印件(使用

    ENET_CFG_TRACE_LEVEL = ENET_CFG_TRACE_DEBUG 和
    #define ENET_CFG_TRACE_DISABLE_INFINSTRING           (ENET_OFF)
    )。 您能否检查这是否是预期行为?
    此致  
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    #if (_debug_= 1)

    #define ENET_CFG_TRACE_DISABLE_INFINSTRING      (Enet_off)
    其他
    #define ENET_CFG_TRACE_DISABLE_INFINSTRING      (Enet_on)
    #endif
    以上是正确的配置、对于调试模式、我们将获得更详细的打印结果。

    BR

    Nilabh A.

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

    好的、我将在接下来的几天尝试一下、并向您提供反馈。

    此致  

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

    当然  

    BR

    Nilabh