Skip to main content
Visitor II
October 4, 2025
Solved

User LED2 mapping bug on Nucleo-H753ZI

  • October 4, 2025
  • 2 replies
  • 191 views

Hello, 

 

Began learning STM32 MCUs with my Nucleo-H753ZI board and I think I found a bug. 

The IO configurator on CubeIDE thinks user LED2 is on PB7 and is blue coloured. I'll paste the code it generates below. But in fact, the user manual UM2407 says user LED2 is on PE1 and is yellow coloured, which is indeed correct. 

Generated code from CubeIDE for Nucleo-H753ZI:

#define LED2_PIN GPIO_PIN_7
#define LED2_GPIO_PORT GPIOB

 Appears to be a bug that should be fixed in the BSP.

Best answer by mƎALLEm

Hello @KishoreK31 and welcome to the ST community,

It will be escalated internally for analysis and an eventual analysis. Internal Ticket 218959 has been submitted which is not accessible by the community users.

Thank you for your contribution.

2 replies

mƎALLEm
mƎALLEmBest answer
Technical Moderator
October 5, 2025

Hello @KishoreK31 and welcome to the ST community,

It will be escalated internally for analysis and an eventual analysis. Internal Ticket 218959 has been submitted which is not accessible by the community users.

Thank you for your contribution.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Visitor II
March 16, 2026

### In `stm32h7xx_nucleo.h` :

/** @defgroup STM32H7XX_NUCLEO_LOW_LEVEL_Exported_Types LOW LEVEL Exported Types
 * @{
 */
#if defined (USE_NUCLEO_H745ZI_Q) || defined (USE_NUCLEO_H755ZI_Q) || defined (USE_NUCLEO_H743ZI2) ||\
 defined (USE_NUCLEO_H7A3ZI_Q) || defined (USE_NUCLEO_H723ZG)
typedef enum
{
 LED1 = 0,
 LED_GREEN = LED1,
 LED2 = 1,
 LED_YELLOW = LED2,
 LED3 = 2,
 LED_RED = LED3,
 LEDn
}Led_TypeDef;
#else /* USE_NUCLEO_H743ZI || USE_NUCLEO_H753ZI */
typedef enum
{
 LED1 = 0,
 LED_GREEN = LED1,
 LED2 = 1,
 LED_BLUE = LED2,
 LED3 = 2,
 LED_RED = LED3,
 LEDn
}Led_TypeDef;
#endif

There are no "NUCLEO_H753ZI", maybe that's the reason.

mƎALLEm
Technical Moderator
March 16, 2026

The OP is not using the BSP driver for this board but rather the CubeMx configuration that configures the pins by default for this board.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."