Recently, I have been learning about the Ethernet aspect of the S32K344 development board. The compiler version I am using is s32ds3.4, the SDK version is PlatformSDK_S32K3_2022_03_S32K344_M7, and the FreeRTOS version is SW32K3_FreeRTOS_10_4_6_UOS_2_0_1_HF01_DS_updatesite_D2308. The Ethernet used is TJA1103 + RMII. The problem I am currently encountering is that the IP address in the program is 192.168.0.200. I set the IP address of my computer to 192.168.0.1. When I burn the program into the S32K344 development board, the program will get stuck at this point.But in the most recent test, the program was able to run normally.
When I pinged 192.168.0.200, the following error message appeared:
C:\Users\17554>ping 192.168.0.20
Pinging 192.168.0.200 with 32-byte data:
Reply from 192.168.0.5: Request timed out.
Request timed out.
Request timed out.
Below is the hardware wiring diagram.
Finally, this is the connection diagram of my development board and the computer.
Hope to receive your reply.
Due to the excessive amount of input content, I still need to add some details.
Firstly, regarding the selection of the PHY in device.c, in my understanding, I used JTA1103. Therefore, I changed PHY_ID1 and PHY_ID2 to the following two.
Then, it comes to the selection of the clocks. I set all three clocks of the emac to 50 MHz, and the clock source was set to emac_mii_rmii_tx.
The only additions I made are these two points. I hope someone can help me answer my questions.
Best regards.
ssslz
Below is my program.