Project showcase
$5 WIFI Black Magic GDB for SAM/SAMD/STM32/MBED

$5 WIFI Black Magic GDB for SAM/SAMD/STM32/MBED © GPL3+

Want to use GDB over WiFi on a a variety of SAM/SAMD/STM32/MBED boards, as you would a standard Black Magic? This is exactly what you need!

  • 26 views
  • 0 comments
  • 0 respects

Components and supplies

11026 02
Jumper wires (generic)
May be M-F / F-F depending on boards being connected
×1
Adafruit SWD Breakout Adapter
Optional and is needed for Due / MKR1000 to breakout pins for ESP8266
×1
2471 10
Adafruit HUZZAH ESP8266 Breakout
Or any ESP8266 board with 4MB flash and GPIO0 and 2 Broken out
×1
Screenshot 2019 06 14 15 39 45 h3it1wigl4
Arduino Nano 33 IoT
Or DUE, any board compatible with the BMP Probe
×1

Necessary tools and machines

09507 01
Soldering iron (generic)
may be required to wire up SWD and / or target connections
4966285
Solder Wire, Lead Free
may be required to wire up SWD and / or target connections

Apps and online services

Ide web
Arduino IDE
Vs2017logo dyb4bnncmy
Microsoft Visual Studio 2017
Visual Micro
ESP8266 BMP Firmware Project
Only needed if Building Firmware Image for Probe from Scratch

About this project

Once you have used GDB Debugging it can be frustrating to keep having to grab your project and bring it back to your PC to debug, which isn't always suitable if trying to debug a system in action.

Using the firmware built by Valmantas Palikša you can quickly and easily turn an ESP8266 into a Black Magic Probe, to allow GDB Debugging over a WiFi Connection of a variety of popular boards!

Detailed Guide

We have provided full instructions on our website, with a pre-compiled binary, along with details on building the firmware from scratch.

https://www.visualmicro.com/page/Create-a-WiFi-Black-Magic-GDB-Probe-from-ESP8266.aspx

Video Guide

Get started with WiFi GDB Debugging in Minutes.....

Code

Example SketchArduino
Example Blink Sketch to allow testing of the GDB Features
int a = 0;


void setup() {
	Serial.begin(115200);
	a += 1;
	pinMode(LED_BUILTIN, OUTPUT);
}


void loop() { 
	function1();
	delay(1000);
	digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
	delay(1000);              // wait for a second
	digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
	delay(1000);              // wait for a second
}


void function1() {
	a += 2;
	int localVariable = 1;
	byte aNotherLocalVariable = 2;
}

Schematics

Nano33IoT Wiring Example
Snapshot of the 4 wires connecting the ESP8266 to the Nano33 IoT
See the Website Guide for specific Pin Information
Nano33iot wiringexample goxtt4nael
Due Wiring Example
Snapshot of the 4 wires connecting the ESP8266 to the Arduino DUE
See the Website Guide for specific Pin Information
Due wiringexample fqxwxrrqxq

Comments

Similar projects you might like

Arduino Uno Debugging

Project tutorial by visualmicro

  • 950 views
  • 0 comments
  • 5 respects

Arduino Nano 33 IoT Debugging

Project tutorial by visualmicro

  • 4,444 views
  • 3 comments
  • 12 respects

Arduino Nano 33 BLE/IoT Custom Debugging

Project tutorial by visualmicro

  • 2,383 views
  • 2 comments
  • 4 respects

Christmas Card PCB

Project tutorial by visualmicro

  • 696 views
  • 0 comments
  • 2 respects

WiFi Robot

Project tutorial by Team Kartik

  • 4,161 views
  • 1 comment
  • 12 respects

Arduino-ESP WiFi Integration

Project in progress by Turai Botond

  • 12,911 views
  • 11 comments
  • 57 respects
Add projectSign up / Login