C:\Program Files (x86)\SEGGER\JLink_Vxxxx. Note that the name of the J-Link Commander executable is actually JLink.exe.
/opt/SEGGER/JLink/JLinkExein the commandline.
connectto 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.
sto select SWD as the target interface.
?to get help and a list of commands that JLink accepts. Note the command
loadbin, we will use it later.
loadbincommand 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
arm-none-eabi-objcopy -O binary nuttx_nxphlite-v3_default.elf nuttx_nxphlite-v3_default.bin