Debugging the Teensy 3.6 with Eclipse MCUXpresso IDE and CMSIS-DAP LPC-Link2

The Teensy boards are great, but as they are they are not really useful for real development, as they lack proper SWD debugging. In “Modifying the Teensy 3.5 and 3.6 for ARM SWD Debugging” I have found a way to get SWD debugging working, at that time with Kinetis Design Studio and the Segger J-Link. This article is about how debug the Teensy with free MCUXpresso IDE and the $20 NXP LPC-Link2 debug probe:

Teensy 3.6 with NXP LPC-Link2

Teensy 3.6 with NXP LPC-Link2

To debug the Teensy 3.5 or 3.6, you need:

First, modify the Teensy (Some suggest it should be possible to pull down the reset line, but I had to completely remove the KL02Z from the Teensy) and solder the headers on the back side of the Teensy.

Then use the Jumper wires to connect the Teensy with the SWD/JTAG adapter:

  • 3.3V to pin 1 (VTref)
  • Reset to pin 15 (RESET)
  • G to pin 4 (GND)
  • DE to pin 6 (GND)
  • DD to pin 7 (TMS)
  • DC to pin 9 (TCK)

The following pictures illustrate the connection:

Connections on the Teensy

Connections on the Teensy

Teensy 3.6 Connection Wires

Teensy 3.6 Connection Wires

Connections on Cortex SWD Adapter

Connections on Cortex SWD Adapter

Power the Teensy board and connect the LPC-Link2 to the SWD debug adapter. I’m using a custom 3D printed enclosure for my LPC-Link2:

LPC-Link2 with Teensy

LPC-Link2 with Teensy

Inside the MCUXpresso IDE, create a project for the MK66FX1M0VMD:

MK60FX1M0VMD18

MK60FX1M0VMD18

Build it, then debug. This works fine with the MCUXpresso IDE 10.1.0:

Debugging Teensy 3.6 with MCUXpresso IDE and LPC-Link2

Debugging Teensy 3.6 with MCUXpresso IDE and LPC-Link2

Summary

It *is* possible to debug the Teensy 3.5/3.6, but it requires a hardware modification. Any SWD/JTAG debug probe can be used for this, including the NXP LPC-Link2 CMSIS-DAP probe.

Happy Teensing 🙂

Links

6 thoughts on “Debugging the Teensy 3.6 with Eclipse MCUXpresso IDE and CMSIS-DAP LPC-Link2

  1. Pingback: Overview of MCUXpresso IDE v10.2.0 | MCU on Eclipse

  2. Pingback: Open Source RISC – Eclipse with RISC-V on the SiFive HiFive1 Board | MCU on Eclipse

  3. Pingback: Tutorial: MCUXpresso SDK with Linux, Part 2: Commandline Debugging with GDB | MCU on Eclipse

What do you think?

This site uses Akismet to reduce spam. Learn how your comment data is processed.