AnsweredAssumed Answered

CubeMX with STM32F769I-DISCOVERY ethernet lwip & FreeRTOS priority assertion

Question asked by Martin Davey on Oct 12, 2016
Latest reply on May 5, 2017 by Jeanne Joly
Cube version: 4.17.0, Firmware package 1.5.0.


Out of the box creation of a project with LwIP, FreeRTOS on the STM32F769I-DISCO0 generates for following code for interrupt priorities (ethernetif.c):

HAL_NVIC_SetPriority(ETH_IRQn, 0, 0);

Which fails FreeRTOS priority assertion during MX_LWIP_Init(). On the STM32F746G-DISCO it generates:

HAL_NVIC_SetPriority(ETH_IRQn, 5, 0);

Which works fine. The other adjustment we still need to make is to set the Ethernet Phy selection to 0 rather than default selection of 1.