ENC28J60 and hardware checksum

Discuss about beta versions of mikroC compiler.
Post Reply
Author
Message
yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

ENC28J60 and hardware checksum

#1 Post by yo2lio » 06 Feb 2008 09:19

Hi,

For ENC28J60 only , take into account this issue :

15. Module: DMA

If the DMA module is operated in Checksum mode (ECON1.CSUMEN, DMAST = 1) at any time while a packet is currently being received from the Ethernet (ESTAT.RXBUSY = 1), the packet being received will be aborted.
The packet abort will cause the Receive Error Interrupt Flag (EIR.RXERIF) to be set, the interrupt will occur (if enabled) and the Buffer Error Status
bit (ESTAT.BUFER) also will become set. The packet will be permanently lost.

Work around

Do not use the DMA module to perform checksum calculations. Instead, perform checksums in software.

This problem does not affect the DMA copy operation (ECON1.CSUMEN = 0).
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Post Reply

Return to “mikroC Beta testing”