STMicroelectronics/STM32CubeF7

ETH_UpdateDescriptor() uses ETH_RX_BUF_SIZE define instead of user supplied value

Maashau opened this issue · 2 comments

ETH_InitTypeDef has user supplied member RxBuffLen. In ETH_UpdateDescriptor() ETH_RX_BUF_SIZE is used instead:

WRITE_REG(dmarxdesc->DESC1, ETH_DMARXDESC_DIC | ETH_RX_BUF_SIZE | ETH_DMARXDESC_RCH);

WRITE_REG(dmarxdesc->DESC1, ETH_RX_BUF_SIZE | ETH_DMARXDESC_RCH);

Also in ETH_DMARxDescListInit():

dmarxdesc->DESC1 = ETH_DMARXDESC_RCH | ETH_RX_BUF_SIZE;

This makes RxBuffLen cause confusion and makes it pretty useless as it has to be the same value as the define.

ST Internal Reference: 157139

RJMSTM commented

Fixed in: 2770385