Skip to main content
VRame
Associate
July 24, 2019
Question

Can you please let me know if the mapping of LED2 on NUCLEO-H743ZI in code is not done as per the data sheet of the development board?

  • July 24, 2019
  • 5 replies
  • 1261 views

as Mapping of LED2 is on PE1 in the code for NUCLEO-H743ZI board in ..\en.stm32cubeh7\STM32Cube_FW_H7_V1.5.0\Drivers\BSP\STM32H7xx_Nucleo_144\stm32h7xx_nucleo_144.h file.

But the LED2 is mapped to PB7 in the datasheet of the evaluation kit datasheet.

Because of this mismatch i am unable to blink the LED in blue by using the header file provided by STM.

Thank you.

This topic has been closed for replies.

5 replies

Tesla DeLorean
Guru
July 24, 2019

So modify the header..

Is this the original NUCLEO-H743ZI, or the new H743ZI2 board with the ST-LINK/V3?

NUCLEO-H743ZI (UM1974)

LED2 BLUE PB7

NUCLEO-H743ZI2 (UM2407)

LED2 YELLOW PE1

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
July 24, 2019

Make sure NOT to define USE_STM32H7XX_NUCLEO_144_MB1363 or USE_STM32H7XX_NUCLEO_144_MB1364 in your project metadata if using the MB1137 board

/**

 * @brief Define for STM32H7xx_NUCLEO_144 board

 */

#if !defined (USE_STM32H7XX_NUCLEO_144) && !defined (USE_STM32H7XX_NUCLEO_144_MB1363) && !defined (USE_STM32H7XX_NUCLEO_144_MB1364)

 #define USE_STM32H7XX_NUCLEO_144

#endif

/** @defgroup STM32H7xx_NUCLEO_144_LED NUCLEO_144 LED

 * @{

 */

#define LEDn                  3

#define LED1_PIN                GPIO_PIN_0

#define LED1_GPIO_PORT             GPIOB

#define LED1_GPIO_CLK_ENABLE()         __HAL_RCC_GPIOB_CLK_ENABLE()

#define LED1_GPIO_CLK_DISABLE()         __HAL_RCC_GPIOB_CLK_DISABLE()

#if defined (USE_STM32H7XX_NUCLEO_144_MB1363) || defined (USE_STM32H7XX_NUCLEO_144_MB1364)

#define LED2_PIN                GPIO_PIN_1

#define LED2_GPIO_PORT             GPIOE

#define LED2_GPIO_CLK_ENABLE()         __HAL_RCC_GPIOE_CLK_ENABLE()

#define LED2_GPIO_CLK_DISABLE()         __HAL_RCC_GPIOE_CLK_DISABLE()

#else

#define LED2_PIN                GPIO_PIN_7

#define LED2_GPIO_PORT             GPIOB

#define LED2_GPIO_CLK_ENABLE()         __HAL_RCC_GPIOB_CLK_ENABLE()

#define LED2_GPIO_CLK_DISABLE()         __HAL_RCC_GPIOB_CLK_DISABLE()

#endif /* USE_STM32H7XX_NUCLEO_144_MB1363 */

#define LED3_PIN                GPIO_PIN_14

#define LED3_GPIO_PORT             GPIOB

#define LED3_GPIO_CLK_ENABLE()         __HAL_RCC_GPIOB_CLK_ENABLE()

#define LED3_GPIO_CLK_DISABLE()         __HAL_RCC_GPIOB_CLK_DISABLE()

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..