Skip to main content
dman
Associate III
August 31, 2016
Question

STm32CubeMX code generation bug

  • August 31, 2016
  • 1 reply
  • 578 views
Posted on August 31, 2016 at 16:09

Hi,

I started a brand new project in STM32CubeMX, picked STM32F427ZIT6 MCU, selected SW4STM32 toolchain. Code generation settings not changed, left to default ''Copy only the necessary files'', ''Keep used code ...'', ''Delete Previously generated...''. When I generate the code, there is a missing #include. The main.c has lines

if
(HAL_PWREx_EnableOverDrive() != HAL_OK)
{
Error_Handler();
}

But the

HAL_PWREx_EnableOverDrive()

is unidentified because the #stm32f4xx_pwr_ex.h'' is not included in the stm32f4xx_hal_conf.h file.

STM32CubeMX 4.16 STM32Cube V1.0 Bug
This topic has been closed for replies.

1 reply

slimen
Visitor II
September 1, 2016
Posted on September 01, 2016 at 11:44

Hello,

I cannot reproduce your issue, using CUBEMX 4.16 and Firmware package STM32CubeF4 V1.13.

Could you please share your .ioc file?

Regards