Skip to main content
Pavel A.
Super User
February 15, 2021
Question

Bug in BSP driver for STM32H743-EVAL onboard LEDs

  • February 15, 2021
  • 1 reply
  • 715 views

In case anybody wondered why the red LED of STM32H743-EVAL does not work unless I/O extender is enabled - here is the fix.

In this place

https://github.com/STMicroelectronics/STM32CubeH7/blob/beced99ac090fece04d1e0eb6648b8075e156c6c/Drivers/BSP/STM32H743I-EVAL/stm32h743i_eval.c#L100-L110

do this change:

static const uint32_t LED_PIN[LEDn] = {LED1_PIN,
#if (USE_BSP_IO_CLASS > 0)
 LED2_PIN,
#else
 0,
#endif
 LED3_PIN,
#if (USE_BSP_IO_CLASS > 0)
 LED4_PIN
#else
 0,
#endif
 };

 Maybe applies to other similar boards as well.

This topic has been closed for replies.

1 reply

Technical Moderator
February 17, 2021

Hello @Pavel A.​ ,

Thanks for sharing the solution. It should be helpful for the Community =)

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks