cancel
Showing results for 
Search instead for 
Did you mean: 

STm32CubeMX code generation bug

dman
Associate II
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
1 REPLY 1
slimen
Senior
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