AnsweredAssumed Answered

Huge assert bug in STM32CubeMX V4.3 with STM32Cube V1.0

Question asked by Osto on Jul 20, 2014
Latest reply on Jul 23, 2014 by Osto
There is a huge bug in STM32CubeMX with STM32Cub V1.0 when full assert is enabled.
When I make a project with timers or SPI and full asser is enabled, then the program hit the assert when the HAL_init function is called in main.

The reason is that the Cube dont set all values of the structure htim and dont clear it because for the configured case a lot of values are not important but the assert configuration checks all parameters regardless if they are used or not. Because of random values in these ram sections, the values make no sense.
This cause a permanent jump to assert function without any reason. This happen with all timers and sometimes with SPI. I cant use them at all.
attached you have the IOC file.

Please forward this to the related team.