Skip to main content
Associate II
July 9, 2024
Question

Analog watchdog configuration bug

  • July 9, 2024
  • 7 replies
  • 3594 views

Hi,

I have a project on Nucleo board with STM32U575ZIT6Q. I'm using STM32CubeIDE version 1.16.0 and CubeMX version 6.12.0. My .c and .h files are generated separately per peripheral.

I was faced with an issue that watchdog works only with one channel.

My analog watchdog settings:

aw.PNG

After generating code, ADC file shows:

conf.PNG

When I was investigating, found this comment in stm32u5xx_hal_adc.h file, ADC_AnalogWDGConfTypeDef structure definition:

ch.PNG

After applying what is mentioned in the comment, watchdog works on both channels.

Please fix this configuration bug. Thanks.

 

This topic has been closed for replies.

7 replies

Ghofrane GSOURI
ST Technical Moderator
July 9, 2024

Hello @S-E 

First let me thank you for posting.

After using CubeMX 6.12.0 and try to reproduce the issue mentioned above , this is what I got  after generating the code :

GhofraneGSOURI_0-1720537268785.png

GhofraneGSOURI_1-1720537353330.png

I am sharing with you my IOC 

Would you mind sharing your OS and indicating if you have installed CubeMX 6.12.0 from the ST official site or used the update option?

THX

Ghofrane

 
 
 
 

 

 

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.
S-EAuthor
Associate II
July 10, 2024

Hi,

My OS is Windows 10 and I used update option.

Ghofrane GSOURI
ST Technical Moderator
July 10, 2024

Hello @S-E 

What was the previous version that you updated?

THX

Ghofrane

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.
S-EAuthor
Associate II
July 10, 2024

I checked and this happens without migration too.