🛠 Premier programme : installer le core et faire clignoter la LED (M7 à 480 MHz !)

Arduino Portenta H7 · debutant · Schéma : IMG-portenta-h7-debutant-1-portenta-h7-premier-programme.svg — Arduino Portenta H7 vue de dessus avec le SoC STM32H747XI (double coeur M7/M4) et la LED utilisateur LEDG mise en évidence, câble USB-C branché, deux connecteurs 80 broches annotés sous la carte

Objectives

Discover the Arduino Portenta H7, Arduino's industrial flagship (SKU ABX00042, ~€120.80 on the official store as of October 2026): a dual-core ST STM32H747XI featuring a Cortex-M7 up to 480 MHz (double-precision FPU) and a Cortex-M4 up to 240 MHz, 2 MB of internal flash, 8 MB of SDRAM, and 16 MB of external NOR flash. You will install the correct core in the Board Manager, understand the dual programming mode (M7 and/or M4), and blink the LED with a first serial program.

Hardware

Complete code

// premier_programme.ino — blink + série sur la Portenta H7
// Dans l'IDE, sélectionne "Portenta H7" puis la cible M7 (ou M4).

int compteur = 0;

void setup {
  Serial.begin(115200);        // série sur le port USB-C
  while (!Serial) {}           // attends l'ouverture du moniteur série
  pinMode(LEDG, OUTPUT);       // LED verte embarquée (il y a aussi LEDR)
  Serial.println("Portenta H7 - core M7 par defaut");
}

void loop {
  digitalWrite(LEDG, HIGH);    // LED ON
  delay(250);
  digitalWrite(LEDG, LOW);     // LED OFF
  delay(750);
  Serial.print("tick "); Serial.println(compteur++);
}

Expected verification

The green LED blinks (250 ms ON / 750 ms OFF) and the serial monitor displays the ticks. The program runs by default on the Cortex-M7; the M4 remains idle — the dual-core RPC tutorial will wake it up. If the board seems dead, double-tap RESET: you enter the MCUboot bootloader (the LED cycles), and “Burn bootloader” in the IDE restores a clean bootloader.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials