cancel
Showing results for 
Search instead for 
Did you mean: 

__HAL_RCC_GPIOE_CLK_ENABLE(); could not resolved

ats3788
Associate II
Posted on October 05, 2016 at 18:05

Hello

  __HAL_RCC_GPIOE_CLK_ENABLE(); could not resolved

I'm a beginner all my Clock stuff is telling me this 

In stm32f4xx_hal_conf.h I enabled

#define HAL_RCC_MODULE_ENABLED

but i have no idea what course this Problem.
2 REPLIES 2
Posted on October 05, 2016 at 20:12

Ok, and what files do you #include in the file that spawns this error? What defines are being passed to the compiler?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Walid FTITI_O
Senior II
Posted on October 06, 2016 at 13:01

Hi kunkies.martin_micha,

You should add “stm32f4xx_hal_rcc_ex.câ€� driver to your workspace, because RCC enable/disable macros are defined in the “stm32f4xx_hal_rcc_ex.hâ€� header.

To have an overview of HAL drivers, you refer to the user manual

http://www.st.com/content/ccc/resource/technical/document/user_manual/2f/71/ba/b8/75/54/47/cf/DM00105879.pdf/files/DM00105879.pdf/jcr:content/translations/en.DM00105879.pdf

which contains a Description of all drivers’ APIs and macros.

As a best practice to avoid similar misunderstood as a beginner, it is recommend to use the template in the STM32Cube package where all drivers are included and the workspace is ready to use.

For example , in

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef4.html

start, when using STM32F429I-Discovery for template at this path: STM32Cube_FW_F4_V1.13.0\Projects\STM32F429I-Discovery\Templates

You can in addition, auto-generated a ready to use template with the configuration and initialization of peripheral the you want to set using

http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html

tool.

Welcome to our STM32 Community.

-Hannibal-