Hi,
Using a ENC28j60 with a cc1352p1 microcontroller and the lwIP stack. I'm trying to ping my device after manually assigning it an IP, and I can ping it and get a response when the number of bytes in the ping is < 244 bytes. So if I do
>> ping 192.168.1.10
I get:
64 bytes from 192.168.1.10: icmp_seq=0 ttl=255 time=15.863 ms
64 bytes from 192.168.1.10: icmp_seq=1 ttl=255 time=16.506 ms
and if I do :
$~ ping -s 202 192.168.1.10
PING 192.168.1.10 (192.168.1.10): 202 data bytes
210 bytes from 192.168.1.10: icmp_seq=0 ttl=255 time=19.728 ms
210 bytes from 192.168.1.10: icmp_seq=1 ttl=255 time=19.922 ms
But if I do:
>> ping -s 203 192.168.1.10
PING 192.168.1.10 (192.168.1.10): 203 data bytes
Request timeout for icmp_seq 0
ethernet input function is never called because the spi_read(EPKTCNT) register always returns zero. Not sure what to do when this happens, since I can't control the Register value, and if I just call the ethernet input function without checking if the EPKTCNT is > 0, I get all zeros in the ethernet input function.
Using a ENC28j60 with a cc1352p1 microcontroller and the lwIP stack. I'm trying to ping my device after manually assigning it an IP, and I can ping it and get a response when the number of bytes in the ping is < 244 bytes. So if I do
>> ping 192.168.1.10
I get:
64 bytes from 192.168.1.10: icmp_seq=0 ttl=255 time=15.863 ms
64 bytes from 192.168.1.10: icmp_seq=1 ttl=255 time=16.506 ms
and if I do :
$~ ping -s 202 192.168.1.10
PING 192.168.1.10 (192.168.1.10): 202 data bytes
210 bytes from 192.168.1.10: icmp_seq=0 ttl=255 time=19.728 ms
210 bytes from 192.168.1.10: icmp_seq=1 ttl=255 time=19.922 ms
But if I do:
>> ping -s 203 192.168.1.10
PING 192.168.1.10 (192.168.1.10): 203 data bytes
Request timeout for icmp_seq 0
ethernet input function is never called because the spi_read(EPKTCNT) register always returns zero. Not sure what to do when this happens, since I can't control the Register value, and if I just call the ethernet input function without checking if the EPKTCNT is > 0, I get all zeros in the ethernet input function.