Skip to main content
JimSChen.4
Associate II
Jul 29, 2020 10:40 PM UTC
Solved

LED LD2 on STM32h745ZI-Q Nucleo 144 board not working

Sorry this is a very simple question but somehow LED LD2 just won't work on STM32h745ZI-Q nucleo 144 boards. As per the manual "UM2408 STM32H7 Nucleo-144 boards", the LD2 is connected to PE1 (by the way, I tried PB7 as well as the older one may on this port). The same routine for other two LD1 (PB0) and LD3 (PB14) all works fine. I have checked the wiring which is also correct. I have two boards all the same. This is nearly a bare bone program just toggling the LED on and off. It just doesn't do the job. Any idea please?

This topic has been closed for replies.
JimSChen.4
JimSChen.4Best answer
Associate II
Jul 30, 2020 8:33 AM UTC

Thanks Clive and TDK for your quick reply and help. NUCLEO_H745ZI_LED works. Indeed I have missed this line __HAL_RCC_GPIOE_CLK_ENABLE() for port E in the init. Now works a treat!

4 replies

Tesla DeLorean
Guru
Jul 29, 2020 11:01 PM UTC

LD2 on PE1 works on the NUCLEO-H755ZI-Q (CRYP+HASH version)

Make sure the clock is suitably enabled. CSI and IO compensation also.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
Jul 29, 2020 11:19 PM UTC

Cycles thru LEDs

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
TDK
Jul 30, 2020 3:50 AM UTC

LD2 works just fine on my "NUCLEO-H745ZI-Q" board.

"If you feel a post has answered your question, please click ""Accept as Solution""."
JimSChen.4
JimSChen.4AuthorBest answer
Associate II
Jul 30, 2020 8:33 AM UTC

Thanks Clive and TDK for your quick reply and help. NUCLEO_H745ZI_LED works. Indeed I have missed this line __HAL_RCC_GPIOE_CLK_ENABLE() for port E in the init. Now works a treat!