cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX 4.12.0 broken LwIP

nikola1010
Associate II
Posted on December 15, 2015 at 18:08

It seems that in version 4.12.0 LwIP is broken.

Code that worked with previous version was running without problems.

Migration made code stop working.

Tested on Stm32f407 discovery + expansion board (LAN8720).
10 REPLIES 10
stm32cube-t
Senior III
Posted on February 05, 2016 at 16:54

Hello,

In next release 4.13, there will be the possibility to change the HAL timebase source from the default systick timebase. This is strongly recommended when using freeRTOS. This can be done under the SYS IP from the pinout tab .

Background for Rationale:

By default, the STM32Cube HAL is built around a unique timebase source which is the ARM-Cortex system timer (SysTick).

However, HAL-timebase related functions are defined as weak so that they can be overloaded to use another hardware timebase source. This is strongly recommended when the application uses an RTOS, since this middleware has full control on the SysTick configuration (tick and priority) and most RTOSs force the SysTick priority to be the lowest.

Using the SysTick remains acceptable

if the application respects the HAL programming model, that is, does not perform any call to HAL timebase services within an Interrupt Service Request context (no dead lock issue).

However HAL timebase services may lose time accuracy as systick is put as the lowest level of priority.

Best regards