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.