ENET uDMA and Descriptors

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

ENET uDMA and Descriptors

跳至解决方案
1,178 次查看
matthewdowsett
Contributor I


Hi,

I am using the TWR-K60N512 and the TWR-SER modules. My project is a CAN to Ethernet bridge bare-metal system.

Using the drivers provided by Freescale I am reasonably sure I have the ENET configured correctly. Also can take a register dump from the PHY and the contents look OK cross checking with the KSZ8041 Datasheet. When I connect the provided Ethernet cable to my PC I get both green LEDs active, with one LED flashing each time my PC sends an Ethernet packet (I am spying using MS Network Monitor).

I have hard coded a TX packet and called enet_transmit_packet function. So both TDAR and RDAR are set but no TX or RX events are occurring. The RX and TX descriptor ring buffers are never altered as I expect they would be.

My question is does the uDMA need any consideration? I am running a very simple bare metal system that has not touched the AIPS, DMA, etc.

Or any other tips would be greatly appreciated :-)

Matthew

标签 (1)
标记 (5)
0 项奖励
回复
1 解答
814 次查看
matthewdowsett
Contributor I

Hi,

Problem solved - the issue was in the MCG setup - a clocking issue. It appears that the uDMA does not need any consideration other than clearing the MPU CESR VLD bit.

Matthew

在原帖中查看解决方案

0 项奖励
回复
2 回复数
815 次查看
matthewdowsett
Contributor I

Hi,

Problem solved - the issue was in the MCG setup - a clocking issue. It appears that the uDMA does not need any consideration other than clearing the MPU CESR VLD bit.

Matthew

0 项奖励
回复
814 次查看
Monica
Senior Contributor III

Matthew,

that's great, thanks for sharing the workaround with us!

You rock!

Best,

Monica.

0 项奖励
回复