Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: AT91SAM9263-ek and emac-uip-helloworld (IAR) ping problem
PostPosted: Wed Apr 15, 2009 3:57 am 
Offline

Joined: Thu Mar 26, 2009 9:51 am
Posts: 1
Today I try to start basic-emac-uip-helloworld-project which is located at IAR collection of examples. It initialize the Ethernet connection and try to send data between computer and evaluation kit board.
But, I see the problem. there is no ping of evaliation kit when I use it with any settings of HostIP, RouterIP and NetMask.
Evaluation kir now connected to Ethernet through router. My computer also connected through other router to the Internet.
I see the the initial IP Address of controller and IP Address of my computer are from different subnets.
The initial parameters of my computer are the following:
1) IP Address = 172.16.116.188;
2) Subnet mask = 255.255.255.224;
3) Gateway - 172.16.116.177;
4) DNS=219.252.0.1.
The initial parameters of my controller (from IAR example) are the following:
1) HostIpAddress = 10.159.245.156;
2) RoutIpAddress = 10.159.245.157;
3) NetMask = 255.255.254.0.
After first attempt to download project and no response from controller (timeout request) I decide to change eveluation kit's IP Address and Subnet mask. I change it in tapdev.h file.
So, I try to set the HostIP Address equal to 172.16.116.179 (which is spare in our net) and RouterIp Address equal to 172.16.116.189. I also change NetMask to 255.255.255.224.
But I also see the error pinging (timeout request). This means that i haven't received any answer from controller.

My question is how I have to settle the TCP/IP parameters to receive ping response? And I am interested in both cases: 1) connecting through router/hub using direct cable; 2) directly connecting through cross cable.

Thank you in advance.

Sincerely yours


Top
 Profile  
 
 Post subject: Re: AT91SAM9263-ek and emac-uip-helloworld (IAR) ping problem
PostPosted: Tue Apr 21, 2009 3:02 am 
Offline

Joined: Fri Feb 27, 2009 7:44 pm
Posts: 13
To get that example working for me, I connected through a crossover or a hub (both worked for what I did). I did not alter the provided example in anyway, but changed my computer's TCP/IP properties to

ip: 10.159.245.1
subnet mask: 255.255.0.0

default gateway and DNS options I left alone (empty)

What program are you using to manage the TCP/IP communication? I began by using hyperterminal using the TCP/IP (Winsock) connection choice with 10.159.245.156 as the host ip and 1000 as the port.

This worked on my at91sam7xc-ek using the example for the at91sam7x, but the process for getting it to run should be the same for you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: