Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
arduinocc
Published © GPL3+

Arduino Nano 33 BLE/IoT Custom Debugging

Learn how get going with debugging on your Arduino Nano BLE, as well as build your own low cost debugger module in the process!

AdvancedFull instructions provided9,263
Arduino Nano 33 BLE/IoT Custom Debugging

Things used in this project

Hardware components

Nano 33 BLE Sense
Arduino Nano 33 BLE Sense
×1
STM32F103CB Blue Pill Board
128K Board has CB not C8 on MCU
×1
Female/Female Jumper Wires
Female/Female Jumper Wires
will cut in half to solder to BLE Pads
×3

Software apps and online services

Arduino IDE
Arduino IDE
Visual Studio 2017
Microsoft Visual Studio 2017
Visual Micro
STMicroelectronics STM32 Flasher

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free

Story

Read more

Schematics

Blue Pill As Black Magic to Target Wiring

Blue Pill As Black Magic Wired to Arduino Nano 33 BLE Target.

Code

ARDUINO_NANO33BLE.Debug.debugger_launch.json

JSON
GDB Launch JSON Created in Visual Micro for the Nano33BLE Target, in Debug Configuration.
All edits in article have been made here

Check COM Port and Toolchain locations for your setup!
{
  "serverLaunchTimeout": 5000,
  "filterStdout": false,
  "filterStderr": true,
  "targetArchitecture": "arm",
  "stopAtEntry": false,
  "externalConsole": false,
  "MIMode": "gdb",
  "MIDebuggerServerAddress": "",
  "cwd": "$(buildPath)",
  "MIDebuggerPath": "C:\\Users\\Simon\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-gdb.exe",
  "MIDebuggerArgs": "-nh -b 115200 -ex \"target extended-remote \\\\.\\COM24\" -ex \"monitor swdp_scan\"  -ex \"attach 1\" ",
  "debugServerPath": "",
  "debugServerArgs": "",
  "program": "$(program)",
  "logging": {
    "moduleLoad": false,
    "trace": false,
    "engineLogging": false,
    "programOutput": false,
    "exceptions": false,
    "traceResponse": false
  }
}

Credits

arduinocc

arduinocc

2 projects • 13 followers

Comments