Vybrid Ethernet Hardware Checksum feature

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Vybrid Ethernet Hardware Checksum feature

508 Views
muhammad_qasim
Contributor I

Hi,

I am working on Vybrid TWRVF65GS10 board. I have tried to implement Vybrid Ethernet Hardware Checksum feature but it is not working

The initialization of hardware checksum feature looks like

/* Enables insertion of protocol checksum and insertion of IP header checksum. (ENETx_TACC) */

WRITE32(io_addr + TACC, 0x18);

/* Enable Discard Of Frames With Wrong Protocol Checksum and Discard Of Frames With Wrong IPv4 Header Checksum (ENETx_RACC) */

WRITE32(io_addr + RACC, 0x6);

/* Enable Store and Forward (ENETx_TFWR) */

WRITE32(io_addr + TFWR, 0x100);

/* Clear this field to enable store and forward on the RX FIFO (ENETx_RSFL) */

WRITE32(io_addr + RSFL, 0);

Is something missing from this code?

0 Kudos
1 Reply

406 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I have no experiece with ENET but I believe that you can use as reference the MQX code.

Please refer to the attached file.

Let me know if that helps.

/Alejandro

0 Kudos