October 20, 2014 AT 4:47 pm





The SEGGER J-Link BASE is identical to the cheaper J-Link EDU model except for the terms of use.

If you’re going to use your debugger strictly for personal, non-commercial projects, such as publishing open source designs that you’re not selling, then you should get the EDU version! It’s the same but significantly cheaper.

On the other hand if you’re making money, or plan to make money off your project, then you’re in the right place with the SEGGER J-Link BASE – JTAG/SWD Debugger. This is the best JTAG/SWD programmer/debugger, you will thank yourself for investing in this industry-standard tool!


Doing some serious development on any ARM-based platform, and tired of ‘printf’ plus an LED to debug?

A proper JTAG/SWD HW debugger can make debugging more of a pleasure and less of a pain. It allows you to program your devices at the click of a button, read or write memory addresses or registers on a live system, temporarily halt program execution at a given location or condition, and much more. Essentially, it’s a direct window into what’s going on inside your MCU at any given moment, giving you a level of access and control that’s not easy to replicate with other debugging methods.

Of the dozens (and dozens!) of debuggers out there (we have literally drawers full of them!), we chose the J-Link for a number of reasons:

The J-Link is fast. Stepping through breakpoints and reading memory addresses is quick, as is programming the flash memory on the chips. It’s real strength, though, is that it’s so vendor and tool neutral. Most chip vendors today provde low cost (or free) tools, but they also lock you into their chips and force you to accept the choice they’ve made for you. Segger’s J-Link is a nice change in that respect, since you can be reasonably certain it will work with any chip, in any major toolchain, and you’re free to change camp (or OS or IDE) without having to buy a new debugger every time.

Why Would I Want This?

You can do a lot of basic debugging with just printf and an LED, and you may not need a HW debugger to get started, but once you start to working on more complicated projects, you hit a debugging wall pretty quickly.

Your chip might be ending up in the HardFault handler, for example, but without a debugger it can be very hard to trace back exactly what is causing the problems. A debugger allows you to set ‘breakpoints’ in your code, where execution will temporarily stop, and you can check the value of memory or peripherals at that point in time, and then ‘single-step’ through your code line by line, executing your program until you find the place that causes your fault. There’s a lot more to debugging than simple breakpoints, but you can often solve in a few minutes with breakpoints what would take much longer with printf and intrusive blocking mechanisms you insert into your code without a debugger.

Whether you’re using GDB Server (GNU Tools) or an IDE and a commercial toolchain, it’s also just a big convenience, since the J-Link can program the flash for you at the click of a button, reset the device, start execution, and then ‘halt’ on main(). You can do all these steps yourself — programming the device via free tools over UART or via a USB bootloader, etc. — but when you need to do that 40-50 times a day, it can get old quick, and 15 seconds saved make a huge difference when debugging. You can program a small MCU and break on main in 2-3 seconds with a J-Link, which makes the tools more or less invisible, which is a good thing when you have other problems to worry about.

In stock and shipping now!

Check out all the Circuit Playground Episodes! Our new kid’s show and subscribe!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!


Wearables — Design with IFTTT

Electronics — Keep track of those rails!

Biohacking — Why Our Eyes Cannot Look at a Solar Eclipse

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !

No Comments

No comments yet.

Sorry, the comment form is closed at this time.