Search code examples
embeddedstm32gpioledstm32f7

STM32F7 Discovery - where are the LEDs?


I am learning about ARM development on my STM32F7 Discovery Kit (w/ STM32F746NGH6 Microcontroller) and I'm trying to write a "blinky" program without using high level libraries.

Reading the documentation, I couldn't figure out which MCU pins are all those onboard LED's connected to? What is the right document to check?

Looking at the board I can see some LEDs (LD1, LD2, ...), but how can I reach them in program? I don't see them in header files and if they are controlled via GPIO pins, how to I know which ones?

In the user manual there's no mention of any LED, except in the electrical schematics (where none of the LEDs is connected directly to the MCU afaik- they serve mostly as hard-wired board status indicators).

Is it possible that an advanced board like this doesn't have a single general purpose LED on it?


Solution

  • From the schematic in that document, it looks like you should be able to use LED LD1 on PI1 (GPIO port I pin 1).

    Download the STM32CubeF7 software package. It should include a blinky program example specifically for your board. Then see which LED/pin they use in the example program.