cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Cube MX STM32U535 ADC Error

jminack
Associate II

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

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

6 REPLIES 6
jminack
Associate II

Additionally,  generated code matches datasheet:

 

jminack_0-1757905294136.png

 

Imen.D
ST Employee

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".
Thanks
Imen
Mahmoud Ben Romdhane
ST Employee

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.

jminack
Associate II

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

 

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.

jminack
Associate II

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