This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Flashing nRF52840 dongle from Visual Studio Code using nrfjprog as in the Makefile

Hi, I'm really pleased with myself as I have set up my VS Code in windows to build and clean blinky and can drag the _build hex file to nRFConnect and flash it to my dongle.

I have tried to use the make flash command from the terminal in VS Code (from command line and through a task) but it doesn't like it.

It says:

Flashing: _build/nrf52840_xxaa.hex
nrfjprog -f NRF52 --program _build/nrf52840_xxaa.hex --sectorerase
ERROR: There is no debugger connected to the PC.
make: *** [Makefile:143: flash] Error 41
The terminal process "C:\Program Files\PowerShell\7\pwsh.exe -Command make flash" terminated with exit code: 1.

Okay, so I assume this was developed for the development board for nRF52840 and not the dongle. I don't have a debugger (i suppose I should buy the Segger one?)

However if nRFConnect>Programmer can do it, why can't nrfjprog? Or are the Makefile settings wrong. I'm going to assume that nRFConnect>Programmer is NOT using nrfjprog?

Man, I'm getting to old for these adventure games.... Slight smile

Gordon

Parents Reply Children
No Data
Related