cancel
Showing results for 
Search instead for 
Did you mean: 

STM23CubeIDE MX fails to generate second analog watchdog

avidroneg
Visitor

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 REPLY 1
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