cancel
Showing results for 
Search instead for 
Did you mean: 

BUG with STM32L4-FW Version 1.5.1 and Nucleo-L476RG

valtin
Associate II
Posted on October 07, 2016 at 18:54

The code generated by CubeMX (V. 4.16.1 and FW L4 1.5.1) does not work. The ErrorHandler() function is called by MX_USART2_UART_Init(). If I comment out this function and have an simple

 

HAL_GPIO_TogglePin(LD2_GPIO_Port, LD2_Pin);

 

HAL_Delay(1000);

 

in the main loop, the MCU gets stuck in HAL_Delay(). So this seams to be an issue with the SysTick System!

 

 

System used:

 

SystemWorkbench 1.10.... under Linux (Kubuntu 15.10).

Does this work under Windows? Anyone?

#stm32l476 #!stm32-!cubemx-!bug
2 REPLIES 2
Amel NASRI
ST Employee
Posted on October 11, 2016 at 10:01

Hi wwmv,

Is it possible to check the error flags when debugging?

I am not sure that the ErrorHandler() code is generated by CubeMX. It seems to be added by your self.

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

valtin
Associate II
Posted on October 11, 2016 at 16:58

Hello,

the ErrorHandler is generated by CubeMX.

Anyway, version 4.17 of CubeMX with the firmware update STM32L4 1.5.2 fixes the problem. (same setup/config, just migrated + code regeneration)