Skip to main content
Associate II
September 15, 2025
Solved

STM32 Cube MX STM32U535 ADC Error

  • September 15, 2025
  • 5 replies
  • 512 views

Hi,

Running STM32MX Tool 6.15.0 On Windows 10.

Started a project for a STM32U535CCTx.

I've enabled ADC and configured channel IN8. The software thinks this is connected to PA4, but the datasheet says it is connected to PA3. See screen caps below.

 

Regards

 

John

 

 

jminack_0-1757905070998.png

jminack_1-1757905125016.png

 

 

 

Best answer by Mahmoud Ben Romdhane

Hello @jminack ,

 

If you enable ADC1 as IN8 Differential, you can notice that ADC1_IN8 and ADC1_IN9 are automatically activated on PA3 and PA4 and while using ADC1 as IN8 Single-ended, ADC1_IN8 is automatically activated on PA3.

 

The message [PA4 is mapped with GPIO_Output] indicates that it is not possible to work with IN8 differential while using PA4 pin as GPIO_Output.

 

MahmoudBenRomdhane_0-1758014428044.png

 

Thanks

Mahmoud

 

 

 

 

 

5 replies

jminackAuthor
Associate II
September 15, 2025

Additionally,  generated code matches datasheet:

 

jminack_0-1757905294136.png

 

Technical Moderator
September 15, 2025

Hello @jminack ,

I moved this post to "STM32CubeMx" destination, and it will be handled by our CubeMx team.

Thank you for your contribution.

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
Technical Moderator
September 15, 2025

Hello @jminack,

 

First let me thank you for posting.

Your request is under investigation, and I will get back to you ASAP.

 

Thanks.

Mahmoud

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.
jminackAuthor
Associate II
September 15, 2025

I have attached a simple example MX project that reproduces this issue.

Steps:

1) Create new project for STM32U535CCTx

2) Configure pin PA4 as output.

3) Enable ADC1, IN8 (which is PA3).

See screen capture.

Even though the software has allocated IN8 to PA3, it is reporting there is a conflict with PA4 for IN8.

 

jminack_0-1757976639606.png

 

Technical Moderator
September 16, 2025

Hello @jminack ,

 

If you enable ADC1 as IN8 Differential, you can notice that ADC1_IN8 and ADC1_IN9 are automatically activated on PA3 and PA4 and while using ADC1 as IN8 Single-ended, ADC1_IN8 is automatically activated on PA3.

 

The message [PA4 is mapped with GPIO_Output] indicates that it is not possible to work with IN8 differential while using PA4 pin as GPIO_Output.

 

MahmoudBenRomdhane_0-1758014428044.png

 

Thanks

Mahmoud

 

 

 

 

 

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.
jminackAuthor
Associate II
September 17, 2025

Hi @Mahmoud Ben Romdhane,

 

Ok, thanks for the explanation. I still find it a bit confusing, because at the point it was displaying the message single ended was selected.

 

However, that is a minor issue. Thanks very much for getting back to me. Appreciated.

 

Regards

 

John