Skip to main content
Associate III
October 2, 2025
Solved

STM23CubeIDE MX fails to generate second analog watchdog

  • October 2, 2025
  • 2 replies
  • 269 views

The first watchdog successfully generates

 /** Configure Analog WatchDog 1
 */
 AnalogWDGConfig.WatchdogNumber = ADC_ANALOGWATCHDOG_1;
 AnalogWDGConfig.WatchdogMode = ADC_ANALOGWATCHDOG_SINGLE_REG;
 AnalogWDGConfig.HighThreshold = 20;
 AnalogWDGConfig.LowThreshold = 4;
 AnalogWDGConfig.Channel = ADC_CHANNEL_1;
 AnalogWDGConfig.ITMode = ENABLE;
 if (HAL_ADC_AnalogWDGConfig(&hadc1, &AnalogWDGConfig) != HAL_OK)
 {
 Error_Handler();
 }

The second watchdog generates... nothing. When I write out similar code myself for the second watchdog then it starts working. The IOC interface looks like

avidroneg_0-1759440418078.png

 

Best answer by Karl Yamashita

Did you enable it?

 

KarlYamashita_0-1759445672364.png

 

2 replies

Karl Yamashita
Karl YamashitaBest answer
Principal
October 2, 2025

Did you enable it?

 

KarlYamashita_0-1759445672364.png

 

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
avidronegAuthor
Associate III
October 3, 2025

Thanks very much; that was the issue. I didn't see that "rank" can expand.

Technical Moderator
October 3, 2025

Hello @avidroneg 

Could you share an ioc in order to further investigate the problem.

KR, Souhaib

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.