cancel
Showing results for 
Search instead for 
Did you mean: 

Cube MX having bug when setting up the ADC1 channels of STM32U575 in Diff Mode

Sia1
Associate

Hi, 

 

This is my setup:

MCU: STM32U575OGY

STM32CubeIDE: 1.9.0

STM32CubeMX: 6.5.0-RC4

 

When setting up the ADC1 channels as Differential using the STM32CubeMX, it selects the GPIO pins that doesn't match with the GPIO mapping of the ADC1 in the datasheet. I manually set the channels and test the pins and datasheet is correct about the pins. So this seems like a bug in CubeMX. I am not sure if it has been fixed in updates or not.

Example: Setting up "ADC1- IN16 Differential" in CubeMX shows it is connected to "ADC1_IN15" and "ADC1_IN16". However; based on datasheet it is connected to ADC1_IN16 and ADC1_IN17. screenshots below. 

The problem with this issue is that CubeMX will lock up the wrong GPIO and won't let use it as another feature. In example below I cannot use the PB0 as anything else while it is not used. 

Sia1_0-1712936354290.png

Sia1_1-1712936368319.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
AScha.3
Chief III

Hi,

on

IDE 1.13.1

Cube 6.9.1

i just tried on U595 , seems ok:

AScha3_0-1712937393067.png

So do the update game ... and try then.

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

View solution in original post

2 REPLIES 2
AScha.3
Chief III

Hi,

on

IDE 1.13.1

Cube 6.9.1

i just tried on U595 , seems ok:

AScha3_0-1712937393067.png

So do the update game ... and try then.

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

Yes; I tried the update Cube MX and I didn't the issue there.