Skip to content

Cannot use PA6 as analog input with a NUCLEO-H743ZI2 #1277

Closed
@pierremolinaro

Description

@pierremolinaro
  • OS: Mac OS X
  • Arduino IDE version: 1.8.13
  • STM32 core version: 1.9.0
  • Board Name: NUCLEO-H743ZI2

Describe the bug
I try to use PA6 as analog input. Calling analogRead (PA6) returns always zero.

Bug Fix
I think the bug is in the ~/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/variants/NUCLEO_H743ZI/PeripheralPins.c file.

Line 57 {PA_6, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC1_INP3 is commented.

Uncommenting this line solves the bug.

Best regards,

Pierre Molinaro

Activity

fpistm

fpistm commented on Jan 12, 2021

@fpistm
Member

Hi @pierremolinaro

In this case this is not a bug. The variant has been described like this.
Anyway with #1091 this will be changed as all pins would be available.

pierremolinaro

pierremolinaro commented on Jan 12, 2021

@pierremolinaro
Author

Ok, thank you very much for your answer.

Best regards,

Pierre Molinaro

added this to the 2.0.0 milestone on Jan 20, 2021
added a commit that references this issue on Feb 12, 2021
added a commit that references this issue on Feb 17, 2021
added a commit that references this issue on Mar 16, 2021
added 5 commits that reference this issue on Mar 22, 2021
33b8067
a0edfc5
9526f17
8ea306a
4084c6a

15 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Cannot use PA6 as analog input with a NUCLEO-H743ZI2 · Issue #1277 · stm32duino/Arduino_Core_STM32