2026-01-14 4:46 PM - last edited on 2026-01-15 12:14 AM by mƎALLEm
Hello, I am new to programming the NUCLEO-H563ZI. I am interested in the low-power STOP MODE function.
I have watched an STM32 video tutorial for a different core. Everything works fine except for this function __HAL_RCC_PWR_CLK_ENABLE();
../Core/Src/main.c:98:3: warning: implicit declaration of function ‘__HAL_RCC_PWR_CLK_ENABLE’ [-Wimplicit-function-declaration]
98 | __HAL_RCC_PWR_CLK_ENABLE();
| ^~~~~~~~~~~~~~~~~~~~~~~~
What is causing this error?
Thank you for your help.
2026-01-14 9:21 PM
Was this main.c generated by CubeMX or part of some STM32H5 example ?
The "implicit declaration" warning means that the function has not been defined. Probably it does not exist at all.
2026-01-19 5:32 AM
Hello @JEngineerHW
The problem may be caused by the HAL Power (PWR) module not being enabled in the stm32h5xx_hal_conf.h file.
In this configuration file, verify that the macro HAL_PWR_MODULE_ENABLED is defined (not commented out). If it is missing or commented, the power-related HAL APIs will not be compiled, which can lead to build errors or missing functionality when using power management features on the STM32H5 device.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.