C:\Program Files (x86)\SEGGER\JLink_Vxxxx
. Note that the name of the J-Link Commander executable is actually JLink.exe./opt/SEGGER/JLink/JLinkExe
in the commandline.connect
to establish a connection with the debugger.MK66FN2M0XXX18
. You can enter this by hand, or enter ?
to bring up a selection dialog in which you can select the right device. The selected device will be remembered in next sessions, meaning you can just press enter to select the saved default.s
to select SWD as the target interface. enter
.?
to get help and a list of commands that JLink accepts. Note the command loadbin
, we will use it later.loadbin
command to write binary files to the FMU.loadbin <path to binary file> <target memory address>
loadbin /complete/path/to/bootloader.bin 0x0
loadbin /complete/path/to/firmware.bin 0x6000
loadbin "/another path/to/bootloader.bin" 0x0
arm-none-eabi-objcopy -O binary nuttx_nxphlite-v3_default.elf nuttx_nxphlite-v3_default.bin