WIZnet Developer Forum

sendto() never returns

Hi.
I’m using W5500 connected to a Windows 10 PC. The network card has an IP addresse 192.168.137.3 with Subnet 255.255.255.0.
W5500 has IP address 192.168.1.161, Subnet 255.255.255.0.

If I’m sending a broadcast from PC the W5500 shall send a respond, but doesn’t. In Debugger I can see that the sendto() function doesn’t return because no Sn_IR_SENDOK or Sn_IR_TIMEOUT bit gets set.

What can I do, to prevent endless looping in sendto() function?

Thanks
BR
Christian

I think I want to you refer to test the loopback test of this link.

Also if you use the sendto() function, you have to enable the Sn_IR.

Hi.
Thanks for your response.
I’ve made two posts with the same question, because the first was blocked for a long time.
I’ve already found the problem for myself, see

BR
Christian

Copyright © 2017 WIZnet Co., Ltd. All Rights Reserved.