Gmac loopback problems

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Gmac loopback problems

1,144 Views
nioer
Contributor I

hi, nxp:

According to the protocol stack demo of tcp/ip stack, we changed the compilation environment from the previous windows to linux, and then the loopback mode of GMAC could not succeed.

The function Gmac_Ip_GetTransmitStatus return value is GMAC_STATUS_BUSY.

we compare the two compilation environment GMAC regs value as picture bellow.

nioer_0-1648714594568.png

 

0 Kudos
Reply
1 Reply

1,072 Views
Yi_Liu_Nxa22412
NXP Employee
NXP Employee

The registers in your pasted picture is belong to GMAC DMA channel 0 Tx and Rx descriptor ring.

That is reasonable when using difference compile project, the Tx, Rx descriptor ring location change when use difference compile environment. That isn't one problem.

The reason of "GMAC_STATUS_BUSY", please check whether the GMAC clock is locked or not.

Please check the MC_CGM_0  MUX_9, MUX_10, MUX_11 and MUX_15.

 

 

The clock chart is as below picture:

yiliu_b16664_0-1649914297250.png

 

0 Kudos
Reply