cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in BSP driver for STM32H743-EVAL onboard LEDs

Pavel A.
Evangelist III

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.

1 REPLY 1
Imen.D
ST Employee

Hello @Pavel A.​ ,

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

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen