Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
arduinocc
Published © GPL3+

Portenta H7 Dual Core Debugging

If you want to debug both cores on your Portenta H7 Industrial Arduino at the same time, this shows you how to get started easily!

AdvancedFull instructions provided1,584
Portenta H7 Dual Core Debugging

Things used in this project

Hardware components

Arduino Portenta H7
Arduino Portenta H7
×1
Arduino Portenta H7 Breakout Board
×1
Segger J-Link Debug Probe
×1
Segger Cortex M Adapter
×1

Software apps and online services

Arduino IDE
Arduino IDE
Visual Studio 2017
Microsoft Visual Studio 2017
Visual Micro

Story

Read more

Schematics

Potenta H7 to Segger J-Link Connections

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

Code

H7 M4 Blink Code

Arduino
Code to Demonstrate Blink on the Portenta M4 Core
// Code to Demonstrate Blink on the Portenta M4 Core
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(LED_BLUE, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BLUE, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(LED_BLUE, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}

H7 M5 Blink Code

Arduino
Code to Demonstrate Blink on the Portenta M7 Core
// Code to Demonstrate Blink on the Portenta M7 Core
// the setup function runs once when you press reset or power the board
void setup() {
	bootM4();
  // initialize digital pin 13 as an output.
  pinMode(LED_RED, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_RED, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(LED_RED, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}

Credits

arduinocc
5 projects • 13 followers
Arduino compatible IDE for Microsoft Visual Studio and Atmel Studio 7 with unique USB Debugger, Trace, Pin Viewer and Plotter, GDB Debugging
Contact

Comments

Please log in or sign up to comment.