2024-04-12 08:42 AM
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.
Solved! Go to Solution.
2024-04-12 08:58 AM - edited 2024-04-12 08:59 AM
Hi,
on
IDE 1.13.1
Cube 6.9.1
i just tried on U595 , seems ok:
So do the update game ... and try then.
2024-04-12 08:58 AM - edited 2024-04-12 08:59 AM
Hi,
on
IDE 1.13.1
Cube 6.9.1
i just tried on U595 , seems ok:
So do the update game ... and try then.
2024-04-12 03:06 PM
Yes; I tried the update Cube MX and I didn't the issue there.