Skip to main content
Visitor II
November 4, 2019
Question

STM32F411E-DISCO CubeMX's repository issue

  • November 4, 2019
  • 1 reply
  • 707 views

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.

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    February 25, 2020

    Hello,

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

    -Amel