ST


A world leader in providing the semiconductor solutions that make a positive contribution to people’s lives, both today and in the future.

Nucleo 64pins boards LED

On the Nucleo 64pins boards, the default user LED1 (mentioned LD2 on the PCB) is also connected on default SPI_SCLK.

This can cause issues in some cases to communicate with SPI shields.

A workaround is to disconnect LD2 by removing the solder bridge SB21 placed in the bottom of the PCB.

Now, if you want to use another pin to drive the LD2: solder a wire between SB21 right-side to any you want pin (for example PA_8 / D7 on Arduino connector).

/media/uploads/bcostm/ld2.jpg

You can now control the LD2 like this:

DigitalOut myled(D7); // or use PA_8