I am trying to use W3150A+ on NM7010B+ module for UDP data stream communication. It is connected with ATmega128@8Mhz on MCU interface. The problem, I am facing is that, W3150 seems no to react for the RECV command. Below is procedure description :
When interrupt requested, i read the IR reg., apropriate Sn_IR and then clear Sn_IR. In main loop, i check the Ethernet flag and proces data. After copying data from internal bufor to my own bufor I increment value of Sn_RX_RD, set the RECV command, wait until the end of execution and proceed with main program loop.
Problem is that value od Sn_RX_RD remains always 0(zero)! I omitted the problem by creating software read pointer, but it helps only within the bounduaries of socket receive bufor. Which means, that having 4kB of memory assigned to socket, i can receive only 4kB of data on it and require socket reset. What is more, value of Sn_RX_RSR is a totla size of data received on socket after openning, not reset by RECV command. Please help.