I’m new to freertos and to these forums, so if this is not an approprate place to ask this questiom, could someone please direct me to the proper forum. Thanks.
Using freertos v6.0.5 rtosdemo_rdb1768 (cortex_lpc1768_gcc_redsuite) on an nxp lpcxpresso1768 board.
lpcxpresso compile and debug environment.
I had to modify the freertos demo code to support the lan8720 phy on the lpcxpresso board. The code changes were limited to the phy init and link status routines. Code seems to be working pretty much as expected, the web server delivers pages properly.
But I noticed some odd behaviour when pinging my device. I was getting two reply frames for every icmp request.
I see that the vSendEMACTxData function and the vEMAC_ISR seem to be set up to send each outgoing ethernet frame twice.
After the frame goes out via DMA, it’s sent yet again by the ISR and then usSendLen is cleared to prevent a third transmission.
Is there a reason for this? Or is it just partial code waiting for some error handling.