TI中文支持网
TI专业的中文技术问题搜集分享网站

AM6442: 使用sdk中的enet_layer2_icssg的R5核例程遇到无法发送以太网数据包的问题

Part Number:AM6442

你好,该问题的背景是我们现在正在基于AM6442芯片在做PRU-ICSSG的二层以太网数据通信的调试,使用的sdk是mcu_plus_sdk_am64x_08_06_00_43版本,例程是enet_layer2_icssg。我现在基于该例程进行了修改,例程中使用的是ICSSG1的两个以太网端口,但是目前我们的板卡是使用的是ICSSG0的两个以太网端口,并且在ICSSG0的两个端口外接的PHY芯片为dp83867,根据以上的不同对该例程进行了修改,连接方式是一台PC直连到AM6442的ICSSG0的RGMII1端口,目前程序运行的情况是能够在介绍任务中收到正确的以太网数据包,但是再将收到的数据包发回去时,通过PC的Wireshark却抓不到数据包,另外PC的防火墙是处于关闭状态,目前我们十分着急,希望能帮忙分析一下谢谢。

下面是debug时串口打印的调试信息:

[10:34:50.210]收←◆==========================
MULTIPORT TEST==========================

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

Open all peripherals
———————————————-

Init configs EnetType:1, InstId :0
———————————————-

[10:34:50.342]收←◆Mdio_open: MDIO Manual_Mode enabled
icssg0-p1: Open port 1
EnetPhy_bindDriver: PHY 2: OUI:080028 Model:23 Ver:01 <-> 'dp83867' : OK
PHY 2 is alive
PHY 3 is alive

Init configs EnetType:1, InstId :1
———————————————-

[10:34:50.460]收←◆Mdio_open: MDIO Manual_Mode enabled
icssg0-p2: Open port 2
EnetPhy_bindDriver: PHY 3: OUI:080028 Model:23 Ver:01 <-> 'dp83867' : OK
PHY 2 is alive
PHY 3 is alive
icssg0-p1: Register async IOCTL callback
icssg0-p1: Register TX timestamp callback
icssg0-p2: Register async IOCTL callback
icssg0-p2: Register TX timestamp callback

Attach core id 1 on all peripherals
———————————————-
icssg0-p1: Attach core
icssg0-p2: Attach core

Create RX tasks
———————————————-
icssg0-p1: Create RX task
icssg0-p1: Waiting for link up…

Enet Multiport Menu:
'T' – Enable timestamp prints
't' – Disable timestamp prints
's' – Print statistics
'r' – Reset statistics
'm' – Show allocated MAC addresses
'd' – Enable dscp based priority mapping
'x' – Stop the test

[10:35:49.830]收←◆Icssg_handleLinkUp: icssg0-1: Port 1: Link up: 1-Gbps Full-Duplex
icssg0-p1: Port 1 link is up
icssg0-p1: Set port state to 'Forward'
icssg0-p1: Async IOCTL completed
icssg0-p1: Open DMA
initQs() txFreePktInfoQ initialized with 8 pkts
1c:63:49:07:5d:45
icssg0-p1: Set MAC addr: 1c:63:49:07:5d:45

[10:36:14.330]收←◆icssg0-p1: Received 1 packets
rxFrame.etherType=608
Transmit all enqueued packets…

[10:36:25.132]收←◆icssg0-p1: Received 1 packets
rxFrame.etherType=8
Transmit all enqueued packets…

Nancy Wang:

建议您到英文论坛发帖咨询,会有产品线专家给您支持,如发帖有问题,请及时告知。

e2e.ti.com/…/processors-forum

,

Nancy Wang:

建议您到英文论坛发帖咨询,会有产品线专家给您支持,如有问题,请及时告知。

e2e.ti.com/…/processors-forum

,

wen f:

好的,感谢你的建议。

,

Nancy Wang:

不客气,我会暂时将该贴关闭。

,

Nancy Wang:

不客气,我会暂时将该贴关闭。

赞(0)
未经允许不得转载:TI中文支持网 » AM6442: 使用sdk中的enet_layer2_icssg的R5核例程遇到无法发送以太网数据包的问题
分享到: 更多 (0)