External LED not blinking on NUCLEO-WL55JC2 – onboard LEDs work
Hello STM Community,
I am working with the STM32 NUCLEO-WL55JC2 board using STM32CubeIDE v1.19, and I am facing an issue with external GPIO usage.
What is working:
Project creation, build, and flashing work correctly.
Debugging and programming via ST-LINK work without issues.
Onboard LEDs (LD1, LD2, LD3) blink correctly using GPIO output configuration.
Issue description:
When I connect an external LED to any GPIO pin (for example PA5, PB5, or other GPIO pins), the LED does not blink, even though:
The firmware is flashed successfully.
The GPIO pin is configured as GPIO Output (Push-Pull) in CubeMX.
The pin is toggled in the code using HAL_GPIO_TogglePin() / HAL_GPIO_WritePin().
Key observation:
Onboard LEDs blink as expected.
External LEDs do not blink on any GPIO pin I tried.
The same GPIO toggle logic works for onboard LEDs but not for externally connected LEDs.
Hardware setup:
External LED connected to GPIO pin through a 220Ω–330Ω resistor
LED cathode connected to GND
Board powered via USB
Checks already performed:
Verified GPIO configuration in the .ioc file
Confirmed correct GPIO port and pin usage in code
No alternate function selected for tested GPIO pins
No internal pull-up or pull-down enabled
Default clock configuration (works for onboard LEDs)
Tried both HAL_GPIO_TogglePin() and HAL_GPIO_WritePin()
Tested multiple GPIO pins and multiple LEDs/resistors
Questions / doubts:
Are the external GPIO pins disabled, isolated, or powered differently on the NUCLEO-WL55JC2 board?
Do the GPIO pins on this board require any additional jumper, solder bridge, or power-domain enable to drive external loads?
Are there any board-level constraints related to GPIO current drive or pin routing on this board?
Is there any special configuration required to use GPIO pins for external LEDs on the NUCLEO-WL55JC2?
Since the onboard LEDs work correctly but no external GPIO pin drives an external LED, I suspect this might be related to board-level pin routing, power domain configuration, or hardware setup specific to this NUCLEO board.
Any guidance or clarification would be greatly appreciated.
Thank you.
