Arduino Portenta H7

There has been user-initiated progress on this topic (by @lpham) by writing a new board definition and adapting a bit of code in the platform-ststm32 platform at Platformio supports Arduino Portenta H7.

Since I don’t have the hardware I can’t verify it. Only upload to the M7 core of the H7 is working atm. (actually uploading to the M4 core should work too with board = arduino_h7m4)

You can e.g. test it with a platformio.ini

[env:arduino_h7m7]
platform = https://github.com/long-pham/platform-ststm32.git
board = arduino_h7m7
framework = arduino

and a basic src\main.cpp

#include <Arduino.h>

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);
  delay(500);
  digitalWrite(LED_BUILTIN, LOW);
  delay(500);
}

Which should compile just fine

..
Linking .pio\build\arduino_h7m7\firmware.elf
Checking size .pio\build\arduino_h7m7\firmware.elf
Building .pio\build\arduino_h7m7\firmware.bin
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  10.5% (used 55176 bytes from 523624 bytes)
Flash: [=         ]  14.5% (used 114376 bytes from 786432 bytes)
========================== [SUCCESS] Took 12.85 seconds ==========================
1 Like