Hi all,
I am using LM3S9B96 Microcontroller in project and ccsv4. I am using enet_uip eample. I am using static IP and defined two appcalls(tcp & udp).
My functionality is perfectly obtained . My problem is the connection between PC and Board is getting time out within one or two mins. After
reset i can ping to my board and getting reply. But after a while it says destination host unreachable. Please provide a solution for this.
Actually im broadcasting a UDP packet inetially. For that udp packet board replies with its IP. Now with that IP address i am opening TCP connection.
and able to communicate with board.,
Only problem i am facing is time out of the connection. Please help me on this as soon as possible
Thanks in Advance.
Mah Kon
Are you using the 9b96 evaluation kit or are you using a custom board?
Could you go into more detail about what's happening on the PC? What is broadcasting the initial UDP packet, the PC or the board?
Run a debugger on the part and see what the state of the system is before and after the timeout. See if the program is in a fault handler or stuck in an infinite loop.
Hi John,
Thanks for quick reply. I am using my own custom board.
1. PC is broadcasting UDP packet.
2. For UDP packet board replies with its IP address.
3.With that IP address i am opening TCP connection from pc to board.
Now i am able to open TCP connection between board and able to communicate with board. Only problem is the connections are getting time out.
Expecting a quick reply.
Thanks in advance.
Mah
Mah,
Thanks for the extra information about your setup. Can you attach a JTAG debugger to your custom board and see the program state when the timeouts begin?
Thanks for the reply. What do you mean by program state? Which register information do you need exactly. Will you please let me know some what detail information regarding program state. Actually i new to this ARM programming.
Thanks & regards,
When i ping continuously (ping -t IP_ADDRESS), Stellaries giving reply for 2-3 minutes. After that its not giving any reply to the ping.
Please help me on this.
--
Thanks
Mahesh
The "state of the program" that I asked you for means the information in the registers and memory at one point of time. You probably wouldn't want to look at every location in memory, but you should run a debugger and look at the values in your variables to see if they make sense.
You should also see what code the program is executing before and after the timeout by inserting breakpoints and debugging code if necessary. If the program is stuck in a fault handler, you can look up the fault registers in the 9b96 datasheet, compare them with the values in your fault registers, and determine a possible cause of the fault.