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

nRF52 DK (pca10040) not seen by nrfjprog after IF update

After spending half a day on this solution, I found out it wasn't really a solution - it devolved back to the same issue after trying to connect - please advise!

Description of System: nRF52 DK Windows 10 pro PC

Description of Problem: Basically, my DK appears bricked, and none of the established solutions work.

After flashing a couple different softdevices on the nRF52 DK, it was no longer found by the nrfjprog utility, whether in regular or bootloader modes.

At first, powering on in bootloader mode would consistently cause the BOOTLOADER drive to show up then disappear either instantly or after ten seconds or so. Trying to flash or drag/drop any FW during this time (for example the latest recommended nRF5x-OB-JLink-IF) was futile. After installing MBED drivers, it wouldn't show up at all as a drive or a COM/PORT entry in the device manager either.

Taking any of the normal steps either requires nrfjprog CLI to be working (the device shows up as recognized) or the device to show up and function properly with a drag and drop. Restarting the computer did not help. All drivers are up to date, and everything has been uninstalled and reinstalled.

My thoughts are that this is either a driver problem or a serious corruption in the board FW that disallows communication. I have an external J-Link programmer if someone could guide me through reflashing with that via the JTAG micro-header interface.

After manually uninstalling all drivers related to the J-Link then reinstalling from scratch, the drive does now show up, and I was able to then use command prompt to copy the IF onto the BOOTLOADER drive, which subsequently started to show up when not in bootloader mode as JLINK (still as BOOTLOADER when started in that mode). I am still, however, unable to see the device with nrfjprog.

Update: In the interest of trying all available options, I tried setting up and ident with Keil, no luck. Also tried sandeepmistry's arduino library - and it actually can see the device (and reads correct serial number). Turns out it will actually program the thing. So now I am beyond confused, because the last thing I expected to work - the most abstracted one - seems to work fine. Any way I can get it showing up again in nrfjprog so that I can hopefully start using this with Make and eventually Eclipse?

Thanks so much in advance.

  • Have you tried to install latest (or going backwards some older) SEGGER J-Link SW package and use J-Link Configurator to flash J-Link OB FW on companion Atmel chip?

    I faced issues in SEGGER/mBed drivers for J-Link and I sometimes needed to pick mbed composite driver manually (on Win7) to make it work as both J-Link and COM serial port. But in the end always nrfjprog from the latest NRFTOOLs package started to work again...

  • You mean after you tried "Also tried sandeepmistry's arduino library " you can now use nrfjprog to program the nRF5 chip?

    Seems like it was a problem with the driver before, as you mentioned that you re-install all drivers and the Jlink driver now showed up.

    Could you sum up the problem now ? The last thing you said was that you can use nrfjprog. Was the problem solved ?

  • Thanks for the reply! I still cannot use nrfjprog, but now the DK is recognized as a valid mbed-style usb device (shows up as a drive and can be IF flashed with drag/drop). The arduino IDE, which I'm no big fan of, also correctly programs the board.

  • Thanks for the suggestion!

    By J-Link Configurator, you mean the Wizard in Ozone? I know they refer to it as the Configurator on their site, but there is no such download, so I'm assuming they're just naming their feature and being a bit inconsistent with its labeling. I do see the ATSAM3X2C option in Ozone, so I'll see if I can flash just the companion chip that way with the J-Link.

    When you say you needed to pick mbed composite driver manually, what do you mean exactly? Do you mean select the composite (i.e. versus other drivers) from some website? If so, which website and which driver(s)? Or do you mean that you used a tool that installs other drivers (like the J-Link SW & Doc Kit), or something else? I'll try using J-Flash to load the OB FW as you suggested.

    Thanks again for the help.

  • No, by J-Link Configurator I mean EXE which comes with J-Link SW package (for Windows at least). It contains J-Link OB FW for various boards including Nordic nRF5x DKs as well as SEGGER driver etc. However fact that Arduino can work with SEGGER flasher and nrfjprog (using SEGGER dlls) not is extremely weird. Are you sure Arduino IDE is not using their serial bootloader flashed to the nRF5x chip?

Related