cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F411E-DISCO CubeMX's repository issue

AMoro.16
Associate II

Hello, I've find one hidden fail in template project for STM32F411E-DISCO (STM32Cube\Repository\STM32Cube_FW_F4_V1.24.1\Projects\STM32F411E-Discovery\Templates). In header file inc/stm32f4xx_hal_conf.h there is a wrong define of hse frequency:

#if !defined  (HSE_VALUE) 
  #define HSE_VALUE    ((uint16_t)8000000U) /*!< Value of the External oscillator in Hz */
#endif /* HSE_VALUE */

8000000U it's not uin16_t, so it should be:

#if !defined  (HSE_VALUE) 
  #define HSE_VALUE    (8000000U) /*!< Value of the External oscillator in Hz */
#endif /* HSE_VALUE */

I meet this, when I manually create new project from System Workbench for STM32 (New->C Project->Executable->Ac6 STM32 MCU Project...)...

STM32Cube_FW_F4_V1.24.1

CubeMX 5.4.0.

Hope this will be fixed and will help somebody.

1 REPLY 1
Amel NASRI
ST Employee

Hello,

Please note that a fix was deployed in STM32CubeF4 V1.25 (available on the web).

-Amel

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.