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

My nrf52840dk stopped working after programming

I am trying to operate a BLE5 sniffer with nrf52840dk

After connecting the dk to nrf connect desktop and programming it with a wrong code (by mistake), it is not able to read the memory content again.

I put the file J-Link OB-SAM3U128-V2-NordicSemi 170724.bin in the BOOTLOADER folder after I pressed the reset button.

Then connected again - but in nrf connect I cannot get any feedback after this line:

"Using nrfjprog to communicate with target"

When I try to use nrfjprog on CMD line, I get this error:

nrfjprog --eraseall
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.

my dk is pca10056 2018.49

my jlink is JLink_V640

My usb cable is connected to J2

I am using USB power source (VDD option is not working)

The second switch is at default sate

and the VEXT-NRF is "On"

How to resolve this problem?

Parents
  • I ran the command nrfjprog --eraseall --log and got the following result.

    --------------------------------------------------------------------------------
    C:\Users\avipa\Dropbox\Projects\Mesh\Controller\BLE5\nrfjprog.exe --eraseall --log
    nrfjprog verion 9.7.1
    --------------------------------------------------------------------------------
    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.

    Strange since it shows like my 5284dk is a NRF52832_XXAA device

Reply
  • I ran the command nrfjprog --eraseall --log and got the following result.

    --------------------------------------------------------------------------------
    C:\Users\avipa\Dropbox\Projects\Mesh\Controller\BLE5\nrfjprog.exe --eraseall --log
    nrfjprog verion 9.7.1
    --------------------------------------------------------------------------------
    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.

    Strange since it shows like my 5284dk is a NRF52832_XXAA device

Children
No Data
Related