LEDs and buttons on STM32 MPU boards

Stable: 13.01.2023 - 16:04 / Revision: 13.01.2023 - 14:06

I am here to prevent the first-page-empty bug!

1 Introduction

STM32 MPU Evaluation boards and Discovery kits share the same usage for LEDs and buttons. The following paragraphs describe the functional mapping of the LEDs and buttons, so that you can refer to the respective board-hardware descriptions to determine to which GPIO each function is mapped:

2 Description

LED color Button label Purpose
- WAKE UP This button allows the platform to be woken from any low-power mode[1]
Green
(*)
USER1
(*)
This can be used at boot time as a button, by U-Boot, to enter USB programming mode with STM32CubeProgrammer. This avoids manipulation of the boot pins when a valid U-Boot image is already present in the board.

It can be used at runtime as:

  • a LED or a button for Linux examples
  • a button for STM32Cube examples
Red
(*)
USER2
(*)
This can be used at boot time as a button, by U-Boot, to enter Android Fastboot mode.

It is also used as a LED to show Cortex-A boot information[2], then it can be used, at runtime, as a button for Linux examples. It is not used by STM32Cube.

Blue - Linux heartbeat LED, which blinks as long as the Linux[3] is alive[2] on the Cortex-A
Orange - STM32Cube[4] examples verdict LED.
Warning white.png Warning
(*) Both a LED and a button are connected to the same GPIO, with inverted logic for the LED control (so the LED is switched on when the GPIO output is set low).

3 References



IMPORTANT NOTICE – READ CAREFULLY
STMicroelectronics NV and its subsidiaries ("ST") reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgment.

Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of purchasers’ products.

No license, express or implied, to any intellectual property right is granted by ST herein.

Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.

ST and the ST logo are trademarks of ST. For additional information about ST trademarks, refer to www.st.com/trademarks. All other product or service names are the property of their respective owners.

Information in this document supersedes and replaces information previously supplied in any prior versions of this document.