This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cannot flash nrf52 dk from different batch

Hi.

We just received few new nrf52 boards. They are same PCA10040 v1.1.0 as previous ones, but these have date of 2016.21 stamped on them instead of 2016.09. Problem is that I cannot flash these new ones with nrfjprog. The flashing starts but never completes. Drag&drop doesn't seem to flash it either, however I haven't tried the drag&drop method before with softdevice, so might be user error. But anyways we need to get the command line flashing working.

I'm using SDK v11 and s132 softdevice.

  • Also, it may be worth downloading and installing the latest J-Link Software and Documentation Pack from Segger.

  • You may need a nrfjprog --recover -f nrf52 as the board may have entered a weird state after the failed flash attempts. I will try to get hold of a board here to try to reproduce. What are the markings on the nRF52 IC on your board? (The nRF52 is located inside the painted rectangle above the four buttons. Should be nRF52832 something something.)

  • That recover did get stuck just like regular flashing with the 9.0.0 tools. I tried flashing also, but it also stuck like before.

    Markings in the chip: N52832 QFAAB0 1606AA With working sample the last part is 1612AP

  • I run the recover also with --log parameter: nrfjprog --recover -f nrf52 --log nrfjprog verion 9.0.0

    FUNCTION: open_dll. FUNCTION: open_dll. FUNCTION: enum_emu_snr. FUNCTION: enum_emu_snr. FUNCTION: enum_emu_snr. FUNCTION: enum_emu_snr. FUNCTION: connect_to_emu_with_snr. FUNCTION: connect_to_emu_with_snr. FUNCTION: connect_to_emu_without_snr. FUNCTION: enum_emu_snr. Updating firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 15 2016 18:03:17 Replacing firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jan 21 2016 17:58:20 JLinkARM.dll OpenEx returned error 'Communication timeout. Emulator did not re -enumerate.'. FUNCTION: close_dll. FUNCTION: close_dll.

  • Ok, now it works. I run "sudo JLinkExe -device nrf52 -if swd -speed 4000" to update the firmware and after that the flashing works OK.

Related