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.

[参考译文] AM2431:具有 DP83826的 Enet CPSW

Guru**** 2512005 points
Other Parts Discussed in Thread: DP83826E

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1425201/am2431-enet-cpsw-with-dp83826

器件型号:AM2431
主题中讨论的其他器件:DP83826E

工具与软件:

您好!

我 在 SDK 中根据 enet_l2_multi_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang 编译工程。

PHY 在演示中使用的是83826而不是83869。

问题是、

1.在演示项目中,只有83822而不是83826的配置。 我在 gEnetPhyDrvs 中添加了83822、我不确定它是否正常。

2.对于 gEnetCpbBoard_am243x_EVM_EthPort、我不知道83826的扩展配置、因此我把它留空。

3.我在 mcu_sdk 中搜索时、出现了 名为 ethphy_dp83826e.c 和 ethphy_dp83826e.h 的文件  我想知道这些文件是否有演示、因为我只需连接到芯片。

导入设置

修改后的 enet_custom_board_config.c

e2e.ti.com/.../enet_5F00_custom_5F00_board_5F00_config.c

系统配置

e2e.ti.com/.../8154.example.zip

来进行 ENET 配置

日志如下所示。

==========================
      L2 Multi-channel Test      
==========================

Init all peripheral clocks
----------------------------------------------
Enabling clocks!

Create RX tasks
----------------------------------------------
cpsw-3g: Create RX task

Open all peripherals
----------------------------------------------
cpsw-3g: Open enet
EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:1 From 4 To 2 

Init all configs
----------------------------------------------
cpsw-3g: init config
cpsw-3g: Open port 2
Mdio_normal_ioctl_handler_ENET_MDIO_IOCTL_C22_READ: failed to read PHY 3 C22 reg 1: -1

EnetMod_ioctl: cpsw3g.mdio: Failed to do IOCTL cmd 0x01000605: -1

EnetPhyMdioDflt_readC22: PHY 3: Failed to read C22 reg: -1

EnetPhy_readReg: PHY 3: Failed to read reg 1: -1

PHY 7 is alive
EnetMod_ioctl: cpsw3G.macport1: Module is not open

Cpsw_registerIoctlHandler: Failed to register IOCTL handler: -1, 1000502, 700A8A91

EnetPer_ioctl: cpsw3g: Failed to do IOCTL cmd 0x01000110: -1

Enet_ioctl: cpsw3g: IOCTL 0x01000110 failed: -1

Failed to set dscp Priority map for Port 1 - -1 

Attach core id 1 on all peripherals
----------------------------------------------
cpsw-3g: Attach core
EnetMod_ioctl: cpsw3G.macport1: Module is not open

Cpsw_registerIoctlHandler: Failed to register IOCTL handler: -1, 1010501, 700A89B1

EnetPer_ioctl: cpsw3g: Failed to do IOCTL cmd 0x01000110: -1

Enet_ioctl: cpsw3g: IOCTL 0x01000110 failed: -1

Assertion @ Line: 280 in ../multi_channel_cfg.c: status == ENET_SOK : failed !!!

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

    尊敬的 

    感谢您的提问。

    日志中丢失的消息、就像 PHY 有通信问题一样。

    日志中丢失的消息、就像 PHY 有通信问题一样。

    我假设您参考以下文档来进行定制 PHY 集成。

     AM64x MCU+ SDK:以太网 PHY 集成指南

    请告诉我您在哪一步面临问题?

    此致

    Ashwani