Skip to main content
pestov
Associate III
May 5, 2017
Question

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

  • May 5, 2017
  • 0 replies
  • 446 views
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?

    This topic has been closed for replies.