Skip to main content
Associate II
December 5, 2024
Question

stm32f334 ADC conflict

  • December 5, 2024
  • 6 replies
  • 4397 views

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

 

This topic has been closed for replies.

6 replies

Andrew Neil
Super User
December 5, 2024

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

AndrewNeil_0-1733416138365.png

Presumably, IN3 is on PA3?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
bestyengAuthor
Associate II
December 5, 2024

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 Technical Moderator
December 5, 2024

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.
bestyengAuthor
Associate II
December 5, 2024

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

Ozone
Principal
December 5, 2024

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