cancel
Showing results for 
Search instead for 
Did you mean: 

(to ST) Ethernet: LwIP(with RTOS) examples have bug in ethernetif.c

pestov
Associate II
Posted on May 05, 2017 at 10:13

In ethernetif driver ethernetif.c in func low_level_input: HAL_ETH_GetReceivedFrame_IT(&EthHandle) can return HAL_BUSY, if ETH_HandleTypeDef state HAL_ETH_STATE_BUSY, if lwIP task is sending data to ethrnet by func low_level_output in this moment. Then func low_level_input willn't run and ethrnet interface will stuck.

Ethernet interface and 

ETH_HandleTypeDef struct must be guarded by Mutex.

Can you include this fix to Cube example update?

0 REPLIES 0