cancel
Showing results for 
Search instead for 
Did you mean: 

STM23CubeIDE MX fails to generate second analog watchdog

avidroneg
Associate II

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Karl Yamashita
Principal

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 tool
CANableV3 Open Source

View solution in original post

3 REPLIES 3
Karl Yamashita
Principal

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 tool
CANableV3 Open Source

Souhaib MAZHOUD
ST Employee

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.

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