ENET uDMA and Descriptors

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ENET uDMA and Descriptors

ソリューションへジャンプ
1,237件の閲覧回数
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)
0 件の賞賛
返信
1 解決策
873件の閲覧回数
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 返答(返信)
874件の閲覧回数
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 件の賞賛
返信
873件の閲覧回数
Monica
Senior Contributor III

Matthew,

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

You rock!

Best,

Monica.

0 件の賞賛
返信