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 PG9 as digital pin with NUCLEO-H743ZI2 #1276

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

Cannot use PG9 as digital pin with NUCLEO-H743ZI2 #1276

pierremolinaro opened this issue Jan 12, 2021 · 2 comments · Fixed by #1091
Labels
bug 🐛 Something isn't working
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 PG9 as digital output :

  • pinMode (PG9, OUTPUT) ; in setup;
  • digitalWrite (PE9, HIGH) ; has no effect, pin is not a high level digital output.

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

Line 174 is : #define NUM_DIGITAL_PINS 99, and line 164 is #define PG9 99. PG9 is the last pin, so NUM_DIGITAL_PINS should be equal to 100.

So changing the line 174 to #define NUM_DIGITAL_PINS 100 solves the bug.

Note
I think the line 176 #define NUM_DIGITAL_PINS 97 (for NUCLEO_H743ZI) should be also changed to #define NUM_DIGITAL_PINS 98, for the same reason : last pin is PG12 (#97).

Best regards,

Pierre Molinaro

@fpistm fpistm added this to To do in STM32 core based on ST HAL via automation Jan 12, 2021
@fpistm fpistm added this to the 2.0.0 milestone Jan 12, 2021
@fpistm fpistm added the bug 🐛 Something isn't working label Jan 12, 2021
@fpistm
Copy link
Member

fpistm commented Jan 12, 2021

Hi @pierremolinaro

you're right it should be 100.
This will be fixed with the #1091

@pierremolinaro
Copy link
Author

Thank you very much. Note also that NUM_DIGITAL_PINS should be 98 for NUCLEO_H743ZI.

Best regards,

Pierre Molinaro

fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Feb 12, 2021
Fixes stm32duino#1276 and stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Feb 17, 2021
Fixes stm32duino#1276 and stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 15, 2021
Fixes stm32duino#1276 and stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 16, 2021
Fixes stm32duino#1276 and stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
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 <frederic.pillon@st.com>
@fpistm fpistm linked a pull request Mar 22, 2021 that will close this issue
27 tasks
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 22, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 23, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 24, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 24, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 24, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 28, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 29, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 30, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 30, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Mar 30, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 2, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 8, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 9, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 9, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 9, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 12, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 14, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 15, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Apr 15, 2021
Fix stm32duino#1276 and Fix stm32duino#1277

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
STM32 core based on ST HAL automation moved this from To do to Done Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants