Jlink

Basics using JLink

I use JLink Debug probes for flashing and debugging microcontrollers. You can pickup the J-Link EDU mini for about $20 from Adafruit.

To get started, you will need to download the J-Link Commander software. It is free and cross platform Windows, Linux, and macOS. You should also download the manual.

Basic read data: this example reads 2 32-bit values starting from memory location 0x100001080

JLinkExe -device nRF52 -speed 1000 -if SWD  
> r
> mem32 0x100001080, 2
> exit

One of my projects use nR52 chipset which has Bluetooth Low Energy radio and 64MHz ARM Cortex-M4F CPU. I want to program the chip's Bluetooth Address in non-volatile memory. To do so, I write some values to CUSTOMER[0] register:

JLinkExe -device nRF52 -speed 1000 -if SWD  
> r
> w4 0x4001E504, 1             //enable writing to NV memory
> w4 0x10001080, 0x00000001    // write to CUSTOMER[0]
> w4 0x10001084, 0x0000ffff    // write to CUSTOMER[1]
> r
> exit

Paul Soucy

Read more posts by this author.