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

PCA10056 erase error

I'm using a PCA10056 (NRF52840 Preview DK) v0.9.1, and trying to erase the existing firmware, but running into issues.

I've tried nrfjprog -f NRF52 --eraseall with version 9.6.0 of the NRF Tools and version 6.16a of JLink. The log file contains:

  • 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.
  • Device "NRF52832_XXAA" selected.
  • FUNCTION: read_device_version.
  • FUNCTION: read_device_version.
  • JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.
  • JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -102.
  • FUNCTION: close_dll. FUNCTION: close_dll.

When I run nRFgo Studio, I get the following message, and when trying to recover: image description

My nRFgo Studio is version 1.21.2.10.

I've been able to put the device in bootloader mode, and reload the J-Link OB bootloader image, but this did not make any difference. Another post suggested disabling mass-storage device mode, which I have done through JLink Commander, but still no luck.

Does anyone know what may be wrong with my device?

  • nrfjprog -f nrf52 --recover --log reports this to the console:

    $ nrfjprog -f nrf52 --recover --log

    • Recovering device. This operation might take 30s.
    • ERROR: Recover failed. Please make sure that the correct device family is given
    • ERROR: and try again.

    and this to the log file (which is the same as what was logged with --eraseall):

    • 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.
    • Device "NRF52832_XXAA" selected.
    • FUNCTION: recover.
    • FUNCTION: recover.
    • JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.
    • JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -102.
    • FUNCTION: close_dll.
    • FUNCTION: close_dll.

    A different USB cable gives the same result. I haven't tried a different PC, but the PC works fine with a different PDK board, so I think the PC is okay.

    Thanks! (and sorry for the horrible formatting)

  • Ok. Then I'm not sure what to suggest. Maybe you can try and program the nRF52840 chip on the bad board with with good board? And/or try to program the nRF52840 chip on the good board with the bad board? By using Debug Out/In and running the chip you want to program from battery. Maybe it can give us some clues.

Related