cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f334 ADC conflict

bestyeng
Associate

Hi all.
Why when I configure an ADC input in PA2 port, I have a conflict with another pin PA3 port that is configured as GPIO?
Many thanks.

bestyeng_0-1733415071251.png

 

6 REPLIES 6

In your screenshot, the conflict is not on IN2 - it's on IN3:

AndrewNeil_0-1733416138365.png

Presumably, IN3 is on PA3?

bestyeng
Associate

Hi Andrew, the problem is on IN3 mapped on PA2, but the tool tell that the conflict is on PA3 that is mapped as GPIO.

bestyeng_0-1733416511756.png

 

STTwo-32
ST Employee

Hello @bestyeng @Andrew Neil 

In your case if you want to set IN3 on the IN3 Differential, you will need to use Both PA2 ADC Positive input analog and PA3 for Negative input analog. For the single-ended mode you just need the IN3 on the PA2. You can see more about that on the following Figure 25 From the RM0364: 

STTwo32_0-1733417244419.png

Best Regards.

STTwo-32

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.

Ok, many thanks. So in this case single ended is only a warning, I may not consider it?
Best regards.

If you selected single-ended and not differential, this is a bug in the Cube tool.

 

In single-ended, it should be working fine. The only warning is that you can't do a differential mode without PA3 available.

Best Regards.

STTwo-32 

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.