🛠 Prise en main de la Nucleo-F401RE : ST-LINK, LED LD2 et alimentation

STM32 Nucleo-64 famille F4 — phare : Nucleo-F401RE · debutant · Schéma : IMG-stm32f4-nucleo-debutant-1-stm32f4nuc-prise-en-main-f401re.svg — Nucleo-F401RE vue de dessus : connecteur micro-USB relié au ST-LINK, LED LD2 (PA5) mise en évidence, bouton USER, en-têtes Arduino et morpho

Goals

Meet the STM32 Nucleo-64 boards built around STM32F4 MCUs — Nucleo-F401RE, F410RB, F411RE and F446RE — using the flagship Nucleo-F401RE (MB1136 reference board) as the reference. By the end of this tutorial you will know what each chip, LED and jumper on the board does, and you will have made the on-board user LED blink with zéro external wiring.

Hardware

The facts that matter

Steps

  1. Check the board jumpers are at factory default (USB power, 3.3 V rail feeding the MCU).
  2. Plug the micro-USB cable into the board connector and your PC. LD3 (power) comes on immediately.
  3. In your OS device manager, the ST-LINK should enumerate as a debugger + COM port (+ mass storage).
  4. Flash the smoke-test sketch below (any toolchain — the next tutorial covers Arduino STM32duino).

Smoke-test code

void setup { pinMode(LED_BUILTIN, OUTPUT); }   // LED_BUILTIN = PA5 = LD2
void loop {
  digitalWrite(LED_BUILTIN, HIGH); delay(200);
  digitalWrite(LED_BUILTIN, LOW);  delay(1800);
}

Expected result

LD2 (green) blinks once per second ; LD3 stays on ; LD1 follows USB activity. Your program runs from bare flash — there is no end-user bootloader (no UF2/CircuitPython drive) ; code goes in through the on-board ST-LINK over SWD, or the ROM serial bootloader.

Common mistakes

Autres tutoriels pour cette carte

Exemples de code pour cette carte

← Retour à la fiche 🛠 Tous les tutoriels