SAME70 Webserver example

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

 

I am using ATSAME70 Explained Demo Board. I am new to this microcontroller.

 

I basically want to run the simple web server example. I have tried both uIp and lwIp examples.

When I compile and load the example, it compiles fine and on running, it initialise PHY web server etc.

I can see the following debug messages.

 

---------------------------------------------------------------------------------------------------------------------

-- GMAC uIP Web Server Example 1.5 --
-- SAM E70 Xplained
-- Compiled: Aug 27 2018 10:52:00 With IAR--
-I- Configure system tick to get 1ms tick period.
-- MAC 3a:1f:34:9:54:54
 - Host IP  192.168.0.97
 - Router IP  192.168.0.1
 - Net Mask  255.255.255.0
-I-  Hard Reset of GMACD Phy
-I- ** Valid PHY Found: 0
-I-  GMACB_ResetPhy
-E- Problem OUI value
AutoNegotiate complete
-I- GMAC_EnableRGMII duplex 1, speed 1
P: Link detected
P: webserver application init
Type the IP address of the device in a web browser,             http://192.168.0.97

---------------------------------------------------------------------------------------------------------------------

 

Then the program keeps running in the main loop.

 

But when I ping the web server from my computer, it gives error that "destination host unreachable".
I have used Wireshark, and there is no communication detected.

I have disabled Firewall on my computer as well.

 

It seems, the program keep running in loop without giving any error but does not assigned any IP address.

No communication from demo board to the outside world.

 

Is someone can guide, what are the possibilities and what can I try to get this web server example working...that will be helpful.

 

Thank you.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

    See this discussion.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I looked to that and tried all different things. Still not sure..how exactly I reach to find the cause?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do you see ARP packets in both directions ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am not sure. Basically whatever that example code comes with SAME70 Evaluation board has in it.

Please let me know, how can I check that in example code to verify?

Thank you.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

    When you ping your device from PC, you should see on Wireshark an ARP broadcast packet asking for the MAC address of the device that has the IP you ping (your SAM device). That should go out no matter your device is working or not. Then the question is if your device replies or not. If it is replying, forget the ping, try to send some UDP packets from your device to your PC. You should see these as well.