2024-03-14 07:30 AM
I configured the watchdog of ADC using stm32cubemx and found that only watchdog 1 can display channel configuration options. Watchdogs 2 and 3 do not have this option. When generating code, even though 2 and 3 watchdogs are enabled, the code for these two will not be generated. Do anyone know what the reason is? Thanks so much. (I have read two topics about this problem in the community, but they don't tell me why and how to solve.)
Solved! Go to Solution.
2024-03-15 12:59 AM - edited 2024-03-15 01:02 AM
Hello @zwhao and welcome to the Community :)
As described in the RM0440 (section 21.4.28): The second and third analog watchdogs are more flexible and can guard several selected channels. However, One Analog Watchdog can monitor one selected channel or all enabled channels (Analog Watchdog 1).
To select a watchdog (2 or 3) to monitor a channel (Eg. enable Analog watchdog 2 to monitor channel 1), you should activate channel 1 and enable Analog Watchdog2 Mode. For that, make sure to enable "ADC_Regular_ConversionMode" and select the channel from "Rank" list. Then, using "Monitored by" option, you can choose the watchdog to monitor this channel.
Hope this answer your question.
2024-03-15 12:59 AM - edited 2024-03-15 01:02 AM
Hello @zwhao and welcome to the Community :)
As described in the RM0440 (section 21.4.28): The second and third analog watchdogs are more flexible and can guard several selected channels. However, One Analog Watchdog can monitor one selected channel or all enabled channels (Analog Watchdog 1).
To select a watchdog (2 or 3) to monitor a channel (Eg. enable Analog watchdog 2 to monitor channel 1), you should activate channel 1 and enable Analog Watchdog2 Mode. For that, make sure to enable "ADC_Regular_ConversionMode" and select the channel from "Rank" list. Then, using "Monitored by" option, you can choose the watchdog to monitor this channel.
Hope this answer your question.
2024-03-15 02:15 AM
I have found a way to set it up according to the way you provided. Thank you very much, it has been of great help to me!!!