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

nRF52840 DK disconnects when programming in a virtual Linux environment

Hi,

I am trying to prgram the nRF52840 DK board (revision 2.0.1) within a virual machine (VirtualBox running Linux Mint). I have installed the SDK and the nrf command line. When I run "make flash" in the directory of project (e.g. /home/damian/Documents/nRF5_SDK_17.0.2_d674dde/examples/peripheral/blinky/pca10056/blank) the following happens:

1. The outpuit of the terminal shows 

DONE nrf52840_xxaa
Flashing: _build/nrf52840_xxaa.hex
nrfjprog -f nrf52 --program _build/nrf52840_xxaa.hex --sectorerase

2. The JLink device that the nRF52840 DK board normally appears as suddenly disconnects and it halts at this last line before outputting the error

ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
make: *** [Makefile:138: flash] Error 33

I then have to unplug and replug the DK board to make it appear again as a JLink drive. I have found that flashing the board with the MBED firmare fixes this problem and the device will sucesfully program the onboard chip. The problem here is that I am using the DK board to program an external board and when I have made the change to MBED, the debug out function no longer works. I need to be able to both program the DK in the virual linux environment and program an external board with it.

Thanks for you help

Parents Reply Children
No Data
Related