DK no longer recognised

I have just started with a new nRF52840DK, and was progressing well with VSCode etc.
I attempted to download Zephyr/samples/bluetooth/beacon to the kit, and it failed mid download (hung)
(Perhaps there is something I failed to appreciate about this samples compatibility .. however..)

Without any changes to connections or switches etc.
The board is no longer recognised in VS Code, and the 52840 CPU is happily running the last downloaded code.(Flashing LEDS and writing to the serial port)
The JLink section appears to be functional, as the 2 Serial ports appear, and work (in the SERIAL MONITOR section of VSCode - pic)
The JLink Drive also turns up in Explorer.
Dropping a Hex file onto this Drive - causes it to disappear after a second or so - indicating the JLink has tried to download to MCU - but it does not change the code.

nrfjprog 'knows about' the jlink, but hangs when attempting to perform any action. ( e.g. --eraseall ...)
My conclusion is that the Target MCU is not responding - possibly due to some boot/ loader being clobbered ??
Is there any way to restore some kind of base to the target MCU?

C:\Users\Owner>nrfjprog --ids --expand
---------- Emulators ----------
serial number:      1050266490
connection type:    USB
-------------------------------

C:\Users\Owner>nrfjprog --com
1050266490    COM5    VCOM0
1050266490    COM4    VCOM1

C:\Users\Owner>nrfjprog --reset
^C                       // <- ^C after some time
C:\Users\Owner>

VS Code details

  • Further info based on previous replies to similar problems.

    The board does not turn up as "BOOTLOADER" , but as JLINK?

    The Green LED flashes a couple of times rapidly on power on, then goes solid green for about 10 seconds, then begin a 'very quick off' flash at about 1Hz . Same if RST button is held or not. Thinking

  • Hi,

    Have you tried recovering the board using "nrfjprog --recover" from command line?

    Best regards,
    Dejan

  • Yes, anything which 'talks to the target' seems to hang.

    C:\Users\Owner>nrfjprog --com
    1050266490    COM5    VCOM0
    1050266490    COM4    VCOM1
    
    C:\Users\Owner>nrfjprog --recover
    ^C                                 //(allowed >1minute to complete then ^C to terminate)
    C:\Users\Owner>nrfjprog --reset
    ^C                                 //(allowed >1minute to complete then ^C to terminate)
    C:\Users\Owner>nrfjprog --eraseall
    ^C                                 //(allowed >1minute to complete then ^C to terminate)
    C:\Users\Owner>

  • Hi Richard, 

    In case PC driver related, any chance to try nrfjprog --recover on a different PC? 

    what is the nrfjprog version 'nrfjprog --version'. 

    also could try the J-Link Configurator app and see if able to detect the j-link and see if able to replace the J-Link firmware. 

  • SOLVED:

    Well - problem sorted.

    When I went to grab the DK to hook up to different computer, I found that Microsoft had decided to update/reboot my main computer behind my back(as they are want to do).
    After reboot, as a matter of interest, before moving the DK - I fired up VSCode - and lo and behold - the DK Turned up as expected.

    I've been able to upload code & debug just fine since. (Including the Beacon Example which I thought might have been the issue)
    So my CMD terminal windows and VSCode etc were all shutdown (don't know if just closing all of them would have been sufficient ??)

    Something certainly had things locked up, probably best advice for anyone finding something similar is "Try rebooting windows"
    Not at all intuitive - but always the final goto since Win3.11 Stuck out tongue winking eye

    Thanks to all who suggested another machine etc - even when that seemed not likely as it 'was working perfectly and nothing had changed'.

Related