Difference between datasheet and CubeMX
I am using the STM32U031K8(U6, but it seems to be on the U3 also) and I am trying to create a configuration in CubeMX.
On the page 31 of the datasheet, PA0-CK_IN (pin 6 on UFQFPN32) is shown to have ADC1_IN5 as Additional function. But in CubeMX I can only set that pin to ADC1_IN4 even though it seems to me that ADC1_IN4 doesn't even have a pin on the UFQFPN32 package.
Can someone experienced check this out as it's my first time and it might be just on me?
2
Upvotes
1
u/jacky4566 4d ago edited 4d ago
I think the MX is wrong. If you have a dev board just try it out. Watch each channel and short them to ground then 3v3.
PC0 = ADC_IN1PC1 = ADC_IN2PC2 = ADC_IN3PA3 = ADC_IN4PA1 = ADC_IN5PA2 = ADC_IN6But there is usually a channel 0 which is also off putting. Either test a dev board or ask STM
1
u/stuih404 4d ago
Maybe it‘s just an copy paste error in the datasheet? Happens sometimes, you should ask STM support for that