I use MQX RTCS 4.0.
I have 2 networks.
I try to ping from PC (ip 192.168.67.87 mask 255.255.255.0) to MQX board (ip 192.168.76.32 mask 255.255.255.0) through a gateway that has one interface and 2 IP addresses, one is 192.168.67.1 and the other 192.168.76.1.
I believe I have enabled all defines for RTCS:
Ping runs properly only the first time, all the next times it fails.
In ICMP statistics I see ST_RX_ECHO_REQ and ST_TX_ECHO_REPLY increment by 1 unit every ping from PC.
ST_RX_REDIRECT increments only the first time and then it remains at 1 value.
At MQX board power on and before I start PC ping, I try to enable ping (every one second) from MQX to my PC.
In this case MQX ping returns always 0 (RTCS_OK).
When I start to ping from my PC (keeping ping from MQX to PC active), also MQX ping starts to fail and returns 0x1510 (RTCSERR_IP_UNREACH - no route to host).
I get the same results using both DHCP (I check that MQX catches the correct ethernet data - IP, mask and gateway) and using static IP.
Does anybody know what's the problem?
It seems that when task increments ST_RX_REDIRECT something that changes the situation happens, and I don't understand if the change is in RTCS library or in the network?
Thank you in advance for your help!