Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pierremolinaro opened this issue Jan 12, 2021 · 2 comments · Fixed by #1091
Closed

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

pierremolinaro opened this issue Jan 12, 2021 · 2 comments · Fixed by #1091
Labels
enhancement New feature or request
Milestone

Comments

@pierremolinaro
Copy link

  • 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

@fpistm
Copy link
Member

fpistm commented Jan 12, 2021

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
Copy link
Author

Ok, thank you very much for your answer.

Best regards,

Pierre Molinaro

@fpistm fpistm added this to the 2.0.0 milestone Jan 20, 2021
@fpistm fpistm added the enhancement New feature or request label Jan 20, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Feb 12, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Feb 17, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 15, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 16, 2021
valeros pushed a commit to valeros/Arduino_Core_STM32 that referenced this issue Mar 16, 2021
Fixes stm32duino#1276 and stm32duino#1277

Signed-off-by: Frederic Pillon <[email protected]>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 22, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 23, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 24, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 24, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 24, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 28, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 29, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 30, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 30, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 30, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 2, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 8, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 9, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 9, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 9, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 12, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 14, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 15, 2021
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants