MCF52259 FEC transmitting two identical frames

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MCF52259 FEC transmitting two identical frames

跳至解决方案
847 次查看
jrmymllr
Contributor I

Hi

 

Using M52259EVB and CW 10.1.  Right now I'm doing really simple stuff by transmitting raw Ethernet frames, no IP stack.  A Tx buffer descriptor is set up and contains a pattern in the data field, and I'm just trying to transmit this reliably.   I'm using only one BD, and ETDSR was previously set to the address of the lone Tx BD.  The below code is executed repeatedly, and slowly, by using CW debugger.  The full code that runs at full speed without debugger checks things such as if TX_BD_R is clear before continuing.

 

                NIC_TxBufDescPtr->length = 1500;
                NIC_TxBufDescPtr->status = TX_BD_W | TX_BD_R | TX_BD_L |TX_BD_TC;
                TDAR = TDAR_X_DES_ACTIVE_BITMASK;   

 

When I step over the TDAR line, the board immediately transmits two identical frames in rapid succession.  I have the cable connected to my computer and monitoring with Wireshark.  I do not understand why it is transmitting twice.  Any ideas?

标签 (1)
0 项奖励
回复
1 解答
609 次查看
scifi
Senior Contributor I

This problem and workarounds are described in the MCU reference manual (21.5.7.1 Duplicate Frame Transmission, MCF52259RM rev. 2).

在原帖中查看解决方案

0 项奖励
回复
3 回复数
610 次查看
scifi
Senior Contributor I

This problem and workarounds are described in the MCU reference manual (21.5.7.1 Duplicate Frame Transmission, MCF52259RM rev. 2).

0 项奖励
回复
609 次查看
TomE
Specialist II

Having one BD is unusual. it may be prefetching "ahead" and finding the same BD. Try it with at least two BDs.

 

Tom

 

0 项奖励
回复
609 次查看
jrmymllr
Contributor I

You're both correct.  All the searching I did to find the solution to the problem, and it turns out the issue is discussed right in the ref. manual. 

0 项奖励
回复