Skip to content

Commit 0c33755

Browse files
author
Louis Dehennin
committed
Removed warning and assert for STM32F7
* The bug has been fixed in the F7 driver: STMicroelectronics/stm32f7xx-hal-driver@2770385 * After verification the drivers shipped with FreeRTOS-Plus-TCP contain the fix already. * The bug is still present for the F4 drivers. * Updated the warning accordingly. * Enforced assert only when compiling for STM32F4.
1 parent 5456fa2 commit 0c33755

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/portable/NetworkInterface/STM32/NetworkInterface.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@
145145

146146
#if ipconfigIS_DISABLED( ipconfigPORT_SUPPRESS_WARNING )
147147

148-
#if defined( niEMAC_STM32FX ) && defined( ETH_RX_BUF_SIZE )
149-
#warning "As of F7 V1.17.1 && F4 V1.28.0, a bug exists in the ETH HAL Driver where ETH_RX_BUF_SIZE is used instead of RxBuffLen, so ETH_RX_BUF_SIZE must == niEMAC_DATA_BUFFER_SIZE"
148+
#if defined( niEMAC_STM32FX ) && defined( ETH_RX_BUF_SIZE ) && defined( STM32F4 )
149+
#warning "As of F4 V1.28.0, a bug exists in the ETH HAL Driver where ETH_RX_BUF_SIZE is used instead of RxBuffLen, so ETH_RX_BUF_SIZE must == niEMAC_DATA_BUFFER_SIZE"
150150
#endif
151151

152152
#if ipconfigIS_DISABLED( ipconfigDRIVER_INCLUDED_TX_IP_CHECKSUM )
@@ -983,7 +983,7 @@ static BaseType_t prvEthConfigInit( ETH_HandleTypeDef * pxEthHandle,
983983
pxEthHandle->Init.RxBuffLen = niEMAC_DATA_BUFFER_SIZE;
984984
/* configASSERT( pxEthHandle->Init.RxBuffLen <= ETH_MAX_PACKET_SIZE ); */
985985
configASSERT( pxEthHandle->Init.RxBuffLen % 4U == 0 );
986-
#if ( defined( niEMAC_STM32FX ) && defined( ETH_RX_BUF_SIZE ) )
986+
#if ( defined( niEMAC_STM32FX ) && defined( ETH_RX_BUF_SIZE ) && defined( STM32F4 ) )
987987
configASSERT( pxEthHandle->Init.RxBuffLen == ETH_RX_BUF_SIZE );
988988
#endif
989989

0 commit comments

Comments
 (0)