S32K314 GMAC issue

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

S32K314 GMAC issue

526 Views
ZouShaoxiong
Contributor I

Dear NXP experts,

 

We are using S32K314 Ethernet and already got demo code of lwip_s32k344 and lwip start guide from NXP FAE ,and we finally change MCU part from S32K344 to S32K314, and I have attached the project with lwip_s32k314_172MQFP_board.zip.

We have some info confirmed:

1) Schematic designed according to:

ZouShaoxiong_1-1700217676462.jpeg

We use MII mode, pins are correctly routed.

 

2) PHY TJA1101A works:

with ID1 and ID2: 0x0180 and 0x1D01

when working, status register 23 value is 0xBCE4, SQI seems OK

ZouShaoxiong_2-1700217739509.png

 

3) Upon S32K314 board is powered, we could capture the packets on the PC via a ethernet converter.

The packet attached by s32k314_eth_cap_data_not_correct.zip. We found that every packet send from MCU is not all bits right.

to show one example,

THE first frame send from MCU in LWIP stack(dump from GMAC_0_TxRing_0_DataBuffer with debugger):

ZouShaoxiong_1-1700218836531.png

 

But actually, we only capture data like below:

ZouShaoxiong_2-1700218913213.png

 

We thought something wrong with the GMAC.

 

Could you figure out what may be wrong?

 

Thanks.

 

Tags (1)
0 Kudos
Reply
2 Replies

439 Views
Nhi_Nguyen
NXP Employee
NXP Employee

Hi @ZouShaoxiong ,

Follow to RM:

Nhi_Nguyen_0-1702283078476.pngNhi_Nguyen_1-1702283097389.png

You configured pin correctly:

Nhi_Nguyen_3-1702283222842.png

 

But, seem that have a problem with clock configuration, you can try this:

Nhi_Nguyen_2-1702283203986.png

Best regards,

Nhi

 

0 Kudos
Reply

517 Views
ZouShaoxiong
Contributor I

We currently do not have one demo board, so we could not test this code with demo code.

0 Kudos
Reply