S32K314 lwip tcp/ip interrupt dosen't work

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

S32K314 lwip tcp/ip interrupt dosen't work

Jump to solution
2,763 Views
malove
Contributor IV

Hello,

I am implementing Ethernet communication using the LWIP TCP/IP stack on an S32K314 MCU.

Using the S32K344 EVM board, I confirmed that the ARP command (ping 192.168.0.200) works when running the LWIP sample code.

 

studyseok8466_1-1734570496268.png

However, when using the same circuit configuration on the S32K314 board, the ping command does not receive a response.

 

studyseok8466_0-1734570478471.png

studyseok8466_3-1734570576026.png

Debugging code revealed that the IP, netmask, and gateway were correctly assigned to the network interface. Additionally, the arp -a command showed that the physical connection seems to be successful.

However, I discovered that the receive interrupt for the ping command is not triggered.

Could you check if there might be any issues with my interrupt settings?

Thank you.

Tags (4)
0 Kudos
Reply
1 Solution
2,694 Views
PavelL
NXP Employee
NXP Employee

Hello @malove ,

you did lots of changes in your software since I did the small fixes in the other thread.

If I were you, I wouldn't do any changes in SW when I change the HW (unless absolutely necessary). I would do small changes.

I do not feel comfortable with no sys_msleep() in your infinite loop in main.c.

Unfortunately, I do not have suitable HW to check your code now.

Best regards,

Pavel

 

 

View solution in original post

0 Kudos
Reply
5 Replies
2,760 Views
malove
Contributor IV

I attached my .c files and .mex file.

0 Kudos
Reply
2,722 Views
PavelL
NXP Employee
NXP Employee

Hello @malove ,

I checked all files you have shared and I just found disabled RX interrupt in GMAC module:

PavelL_0-1734620438518.png

I don't have hardware with S32K14 now, so I couldn't check it.

Best regards,

Pavel

0 Kudos
Reply
2,709 Views
malove
Contributor IV

Thank you for answer @PavelL 

After posting this, I confirmed that the Rx interrupt was disabled.

Even after enabling the function, the interrupt still fails to occur intermittently.

What should I check in this situation?

0 Kudos
Reply
2,695 Views
PavelL
NXP Employee
NXP Employee

Hello @malove ,

you did lots of changes in your software since I did the small fixes in the other thread.

If I were you, I wouldn't do any changes in SW when I change the HW (unless absolutely necessary). I would do small changes.

I do not feel comfortable with no sys_msleep() in your infinite loop in main.c.

Unfortunately, I do not have suitable HW to check your code now.

Best regards,

Pavel

 

 

0 Kudos
Reply
2,656 Views
malove
Contributor IV
 

Thank you for your advice @PavelL 

With efforts to match the sample code precisely, I was able to successfully complete the ping test.

0 Kudos
Reply