This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Passed_CRC Flag in Buffer Drescriptor

Hi,

I have a question concerning the StarterWare (V2.00.01.01) Ethernet examples and a problem in having check sequence errors on ARP protocol replys sent by the AM335x in Wireshark.

I the AM335x ARM Technical Reference Manual (spruh73k) it is written, that a receive buffer descriptor has a "Passed_CRC" flag telling the application whether the received packet includes the 4-byte CRC.

1. Question: Does this mentioned flag show that the CRC was checked ok or does this flag just say that the EMAC has included the CRC in the buffer?
2. Question: If it just say that the CRC has been included in the buffer. How can I switch that off? (if I don't need the CRC)

Because the packet length in the buffer descriptor also counts the CRC (right?) I think that the code in the cswif.c file has to calculate the "tot_len" different:
tot_len=(curr_bd->flags_pktlen & CPDMA_BD_PKTLEN_MSK)-4;

The problem is that lwIP does not set the length in the ARP reply but insted uses the length of the received request. And this length is too high by the value of 4.

Thanks and best regards,
Patrick