Devices & Components
Portenta H7
Segger Cortex M Adapter
Segger J-Link Debug Probe
Arduino Portenta H7 Breakout Board
Software & Tools
Visual Micro
Arduino IDE
Visual Studio 2017
Project description
Code
H7 M4 Blink Code
arduino
Code to Demonstrate Blink on the Portenta M4 Core
1// Code to Demonstrate Blink on the Portenta M4 Core 2// the setup function runs once when you press reset or power the board 3void setup() { 4 // initialize digital pin 13 as an output. 5 pinMode(LED_BLUE, OUTPUT); 6} 7 8// the loop function runs over and over again forever 9void loop() { 10 digitalWrite(LED_BLUE, HIGH); // turn the LED on (HIGH is the voltage level) 11 delay(1000); // wait for a second 12 digitalWrite(LED_BLUE, LOW); // turn the LED off by making the voltage LOW 13 delay(1000); // wait for a second 14} 15
H7 M4 Blink Code
arduino
Code to Demonstrate Blink on the Portenta M4 Core
1// Code to Demonstrate Blink on the Portenta M4 Core 2// the setup function 3 runs once when you press reset or power the board 4void setup() { 5 // initialize 6 digital pin 13 as an output. 7 pinMode(LED_BLUE, OUTPUT); 8} 9 10// the 11 loop function runs over and over again forever 12void loop() { 13 digitalWrite(LED_BLUE, 14 HIGH); // turn the LED on (HIGH is the voltage level) 15 delay(1000); // 16 wait for a second 17 digitalWrite(LED_BLUE, LOW); // turn the LED off by making 18 the voltage LOW 19 delay(1000); // wait for a second 20} 21
H7 M5 Blink Code
arduino
Code to Demonstrate Blink on the Portenta M7 Core
1// Code to Demonstrate Blink on the Portenta M7 Core 2// the setup function runs once when you press reset or power the board 3void setup() { 4 bootM4(); 5 // initialize digital pin 13 as an output. 6 pinMode(LED_RED, OUTPUT); 7} 8 9// the loop function runs over and over again forever 10void loop() { 11 digitalWrite(LED_RED, HIGH); // turn the LED on (HIGH is the voltage level) 12 delay(1000); // wait for a second 13 digitalWrite(LED_RED, LOW); // turn the LED off by making the voltage LOW 14 delay(1000); // wait for a second 15} 16
Downloadable files
Potenta H7 to Segger J-Link Connections
How to connect the SWD pins on the Breakout Board to the Segger J-Link
Potenta H7 to Segger J-Link Connections

Potenta H7 to Segger J-Link Connections
How to connect the SWD pins on the Breakout Board to the Segger J-Link
Potenta H7 to Segger J-Link Connections

Comments
Only logged in users can leave comments