cancel
Showing results for 
Search instead for 
Did you mean: 

AWD on the STM32F3Discovery

HP-
Associate

Hello everyone, I am new to the world of STM32 and trying to get an AWD going on the STM32F3Discovery, this with no success. I have followed the following guide, https://community.st.com/t5/stm32-mcus/how-to-configure-and-use-the-stm32-s-adc-analog-watchdog-feature/ta-p/49822. But the watchdog never seems to triggers even if the ADC value is way above the threshold . The code is below, thank you for any response.

Kind regards.

 

1 REPLY 1
TDK
Guru

At a minimum, ubAnalogWatchdogStatus should also be declared as volatile.

With continuous conversions set and a 1.5 cycle sample time, you could be swamping the CPU with interrupts so much that it won't run any code in the main thread. Debug, step through code to verify it makes progress.

If you feel a post has answered your question, please click "Accept as Solution".