2025-03-24 10:22 PM - last edited on 2025-03-25 1:41 AM by mƎALLEm
Newcomer to CubeIDE. When I set the ADC parameters for fixed sequencing, i.e. not fully configurable, some initialization code is generated for watchdogs 2 & 3 (see below). I don't want to use analog watchdogs or have to edit the main.c file manually. Is this a bug, or is there some way to alter this behaviour? Only watchdog 1 seems to have an enable check box.
I'm using STM32CubeIDE Version: 1.18.0, Build: 24413_20250227_1633 (UTC) on Linux.
/** Configure the WatchDogs 2
*/
AnalogWDGConfig.WatchdogNumber = ADC_ANALOGWATCHDOG_2;
AnalogWDGConfig.WatchdogMode = ADC_ANALOGWATCHDOG_SINGLE_REG;
if (HAL_ADC_AnalogWDGConfig(&hadc1, &AnalogWDGConfig) != HAL_OK)
{
Error_Handler();
}
/** Configure the WatchDogs 3
*/
AnalogWDGConfig.WatchdogNumber = ADC_ANALOGWATCHDOG_3;
if (HAL_ADC_AnalogWDGConfig(&hadc1, &AnalogWDGConfig) != HAL_OK)
{
Error_Handler();
}
2025-03-24 10:41 PM
Sorry, the title end should have been "not fully configurable".
2025-03-25 12:58 AM - edited 2025-03-25 12:58 AM
Hello,
what microcontroller are you using?
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.
2025-03-25 1:19 AM
Hi, I'm using the STM32U073CCT6.