AnsweredAssumed Answered

STM32CubeMX / HAL Bug Report: PLLSAI

Question asked by elaske on Jul 14, 2014
Latest reply on Aug 28, 2014 by Montassar BEN ROMDHANE
In trying to compile generated code from the STM32CubeMX application for the STM32F429I-DISCO board, I've found a problem with part of the HAL library.

Simply, the PLLSAI assert #defines have a bug in their definition:
/** @defgroup RCCEx_PLLSAI_Clock_Source
  * @{
  */
#define IS_RCC_PLLSAIN_VALUE(VALUE) ((192 <= (VALUE)) && ((VALUE) <= 432))
#define IS_RCC_PLLSAIQ_VALUE(VALUE) ((2 <= (VALUE)) && ((VALUE) <= 15))
#define IS_RCC_PLLSAIR_VALUE(VALUE) ((2 <= (VALUE)) && ((VALUE) <= 7)) 
/**
  * @}
  */

This is the same setting as the normal PLL configuration. However, the PLLSAI configuration allows for a looser 49-432 definition (see RM0090). So, this needs to be instead defined as,
#define IS_RCC_PLLSAIN_VALUE(VALUE) ((49 <= (VALUE)) && ((VALUE) <= 432))

This begs the question: Is there any formal way of reporting bugs with the ST provided libraries / tools, rather than just on the forums?

Outcomes