Arm Mbed and Pelion Device Management support forum

Segger J-Link Support


I’m using the Mbed Studio IDE to develop some code for my FRDM-K64F board. The debugger built into that board is fine for now. Once I build my own boards for my design, they’ll lack the embedded debugger hardware and I’ll need to use something like a Segger J-Link to program and debug my code.

Is there a plan to support the Segger J-Link from within the Mbed Studio IDE?

If not, is there an alternative standalone programmer / debugger I can use to debug my software once I transition to my own board design?


Hi Glen,

Apologies for the late reply on this. We are introducing support for custom boards in our 1.0 release and have mainly been using an external STLink for testing. However, Mbed Studio currently uses pyOCD under the hood, and Segger J-Link is listed as “experimental”:

For moving to your custom board, we have a couple of options: export to an IDE like Keil MDK and use that (J-link is supported), or use the Mbed command line tools, which we do ship with Mbed Studio (you’ll need to manually set up a debugger etc for this).

We are also carrying out some research at the moment to understand how we can support custom board development more seamlessly, so if you are happy to provide some insight, please get in touch with us at


1 Like

i am using SEGGER J-Link for flashing our boards.

  1. In mbed_app.json add

“target_overrides”: {
“*”: {
“target.OUTPUT_EXT”: “hex”

  1. Create a file jlflash.jlink with this content

device STM32L476VG
si 1
speed 4000
loadfile BUILD/main/app_main.hex 0

  1. Flash the hex with this command

JLinkExe jlflash.jlink


Thanks for the replies, everybody! I’ll check out the command line tools. I’ve also found a few open source projects to build low-cost USB CMSIS-DAP debuggers that connect to the target using the 10-pin SWD interface that I plan on checking out.

I use JLink and Ozone.

Accono has an inexpensive programmer with tag-connect. I haven’t tried it yet. But, I thought it might work for you.

1 Like