rkyrk wrote on Wednesday, February 28, 2018:
Almost a duplicate of Tom Walsh post on the transmission issue with SAME70.
For my project we are using a Atmel SAMV71 Xplain Ultra and FreeRTOS + TCP.
As a base we chose the board specific examples provided by Atmel studio and upgraded the FreeRTOS version to 10 (8x as default i think).
We can see incoming messages being sent over the link in the embedded debugger and that we try to respond or send packages of our own (DHCP etc), but we cannot pick up any outgoing messages with wireshark or from the router logs.
Hence we get no IP address to the board and are somewhat stuck in our project.
Same issue arises from other examples like LWIP – we can see no errors from the debbuger, it states that its DHCP but times out and sets static ip – none are shown in wireshark or picked up by router logs.
As students with little debbuging experience we are unsure where to even look for the faults – concerning as well as the examples states that they are plug-and-play(lack for better woring) and good starting plattforms for projects.
Software
FreeRTOS
FreeRTOS PLus TCP
network driver recommended on avrfreaks forum: (We have tested with the default also)
https://github.com/jtbr/FreeRTOS-TCP_SAMV71_NetIntf/blob/master/NetworkInterface.c
“Log” from the embedded debugger
-- Freertos Example --
-- SAMV71-XLTRA
-- ATSAMV71Q21B
-- Compiled: Feb 23 2018 11:00:19 --
Network buffer initialized.
Determine the first anonymous TCP port number to get assigned.
prvIPTask started
GMACInit started...
xGMACWaitLS: 1 (PHY 1) periph freq 150 Mhz
Network buffers: 60 lowest 60
Polling RX-Event...
pxGetNetworkBufferWithDescriptor.
Network buffers: 59 lowest 59
prvInitialiseDHCP: start after 250 ticks
pxGetNetworkBufferWithDescriptor.
vDHCPProcess: discover
gmac_start_transmission called.
Packet is sent to the network.
pxGetNetworkBufferWithDescriptor.
vDHCPProcess: discover
vDHCPProcess: timeout 10000 ticks
gmac_start_transmission called.
Packet is sent to the network.
pxGetNetworkBufferWithDescriptor.
vDHCPProcess: discover
vDHCPProcess: timeout 20000 ticks
gmac_start_transmission called.
Packet is sent to the network.
pxGetNetworkBufferWithDescriptor.
vDHCPProcess: discover
vDHCPProcess: timeout 40000 ticks
gmac_start_transmission called.
Packet is sent to the network.
pxGetNetworkBufferWithDescriptor.
vDHCPProcess: discover
vDHCPProcess: timeout 80000 ticks
gmac_start_transmission called.
Packet is sent tNetwork buffers: 58 lowest 58
o the network.
Network buffers: 59 lowest 58
vDHCPProcess: giving up 160000 > 120000 ticks
Network UP.
Machine info:
IP Address = 192.168.0.9
MAC Address = FC C2 3D 12 1B 82
pxGetNetworkBufferWithDescriptor.
Generating ARP request.
gmac_start_transmission called.
Packet is sent to the network.
pxGetNetworkBufferWithDescriptor.
Generating ARP request.
gmac_start_transmission called.
Packet is sent to the network.
pxGetNetworkBufferWithDescriptor.
Generating ARP request.
Returning GMAC_TX_BUSY
Unsuccessful packet send
pxGetNetworkBufferWithDescriptor.
Generating ARP request.
Returning GMAC_TX_BUSY
Unsuccessful packet send
Any hits/help is very welcome
Thanks for your time
Regards,
Robert & Karl