AnsweredAssumed Answered

imxrt lwip cache issue (bug report?)

Question asked by Dave Marples on Jul 31, 2018
Latest reply on Aug 1, 2018 by Dave Marples

Folks,

 

On the current version of the imxrt SDK (2.4.2) in ethernetif.c around lines 1133 or so (in ethernetif0_init) I think the transit buffers need to be declared in non-cached memory as follows;

 

From;

 

    SDK_ALIGN(static rx_buffer_t rxDataBuff_0[ENET_RXBD_NUM], FSL_ENET_BUFF_ALIGNMENT);
    SDK_ALIGN(static tx_buffer_t txDataBuff_0[ENET_TXBD_NUM], FSL_ENET_BUFF_ALIGNMENT);

To;

 

    AT_NONCACHEABLE_SECTION_ALIGN(static rx_buffer_t rxDataBuff_0[ENET_RXBD_NUM], FSL_ENET_BUFF_ALIGNMENT);
    AT_NONCACHEABLE_SECTION_ALIGN(static tx_buffer_t txDataBuff_0[ENET_TXBD_NUM], FSL_ENET_BUFF_ALIGNMENT);

 

 

...at least for me this reduces my flood ping losses from 70% to 0% ...please let me know if I've misunderstood something.

 

Regards

 

DAVE

Outcomes