Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User22850
Level 1
Level 1
First reply posted First question asked Welcome!

I got a KIT_A2G_TC397_3V3_TFT board and got some demo code for it.  I tried porting both lwip-1.4.1 and lwip-2.1.2 to our bare metal software, but both Tx and Rx directions of the Geth are not working..

On Rx side, I can see there are packets received by the MAC by checking the GETH_RX_OCTET_COUNT_GOOD register. However MCU calling "Ifx_Lwip_pollReceivedFlags" and there is nothing.

On the TX side, no frames go out (verified by wireshark and GETH_TX_OCTET_COUNT registers) and eventually all DMA descriptors are exhausted (the OWN bit of the descriptor is not cleared by the DMA engine).

 It appeared to me that the DMA engine is not working at all. Is there something outside of the Geth needed to be setup before the DMA engine can be functioning?

I thought it could the clock for the Geth was not setup properly, but MDIO from the Geth is working, and I checked the registers for the clock setup and it seemed to be fine.

Has anyone seen this before or any suggestion?

 

 

0 Likes
1 Reply
User22850
Level 1
Level 1
First reply posted First question asked Welcome!

It seems the Ethernet_1_KIT_TC397_TFT sample code already implemented the workaround for GETH_TC.002. So the issue is not that.

0 Likes