tecnpoli2 wrote on Friday, February 26, 2016:
Goodmorning
My configuration is the follow:
Board: SAM4E-EK (Atmel development kit)
MCU: Atmel SAM4E16E (Cortex-M4)
IDE: Atmel Studio 6.2
Compiler: ARM GCC v4.8.1143
OS: FreeRTOS 8.2
Ethernet Stack: FreeRTOS+UDP
Ethernet Driver : gmac diver provided by Atmel(ASF 3.14)
Ethernet Transceiver : Ksz8051mnl
I’m using the FreeRTOS demo on the board, but when I try to send UDP packets from the PC, the board lose about 50% of the sent packets.
I have configured the demo project like the following mode
FreeRTOS:
- heap_4.c
FreeRTOS +UDP: - BufferAllocation_2.c
- xGMACOptions.uc_copy_all_frame = 1;
- and I have modified the ethernet_phy.c in order to configure the gmac register (GMAC_NCFGR) to 100Mbps and FullDuplex
this because the “ethernet_phy_set_link” function sets the register to 10Mbps and HalfDuplex
- and I have modified the ethernet_phy.c in order to configure the gmac register (GMAC_NCFGR) to 100Mbps and FullDuplex
The ethernet transceiver of my board is already set to 100Mbps but I still lose the UDP packets.
Why do I lose so much packets?
Should it be possible to reach the 80% (or higher) of efficency?
Thanks in advance.
Best regards
Fabio