cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U031C6 undefined reference to __HAL_RCC_IWDG_CLK_ENABLE()

StefCh
Visitor

Hi, I started a new project with STM32U031C6. When I enabled Independent watchdog (IWDG), STM32CubeIDE generated the following line in the MX_IWDG_Init function:
     __HAL_RCC_IWDG_CLK_ENABLE();
When compiling the project, an error is generated:
     undefined reference to '__HAL_RCC_IWDG_CLK_ENABLE'
I could not find such a function either in the drivers included by STM32CubeIDE in the project or in the repository in the STM32CubeIDE installation directory.

This function should enable the APB peripheral clock to the Independent Watchdog (IWDG), but I couldn't find anything for this purpose anywhere in the Reset and Clock Control (RCC) registers.

Does this mean that the APB peripheral clock is always active for the Independent Watchdog (IWDG) and should not be enabled? In other words, is this function unnecessary and can I comment it out?

I would be grateful for any help

3 REPLIES 3
Mahmoud Ben Romdhane
ST Employee

Hello @StefCh ,

 

First let me thank you for posting and welcome to the ST Community.

For more investigation, I suggest that you provide your Ioc.File.

 

Thanks.

Mahmoud

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hello,

Here you are, the Ioc file

 

Hello @StefCh ,

 

The same issue was reported through this Post.

MX should not generate "__HAL_RCC_IWDG_CLK_ENABLE(); when using LL Driver.

(IWDG Peripheral), a ticket was raised to the dedicated team under this internal ticket number:

( Ticket Number : 214196 ).

I will let you know when the issue is solved.

 

Thanks.

Mahmoud

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.