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?

  • 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"

    With this configuration, you need to have both J2 and "nRF USB" connected with one USB cable each. I would recommend that you set the main switch SW9 to position "VDD power" (and VEXT-NRF to OFF) unless you are applying power to the nRF externally.

     

    If the kit does not fully light up when powering from J2, you can try to toggle the "power" switch on/off a couple of times.

    Could you try this and report back?

     

    Kind regards,

    Håkon

  • I did as you suggested, one cable is connected to J2. nrf Power source is at Vdd. VextNrf switch is at Off. 

    There is no light in the led. I tried to toggle the switch no light. Only if the switch point to USB - it lights

  • Now the led is ON. I put the J-Link OB-SAM3U128-V2-NordicSemi 170724 file into the bootloader folder . But the NRF connect is stuck - it cannot read the content of the 52840 dk

  • 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

  • If this will help to analyze what happened and how to fix The last thing that I did while the 52840dk worked was to follow the guidelines in https://github.com/NordicSemiconductor/nRF-Sniffer-for-802.15.4/blob/master/README.md

    I probably did something wrong (maybe programmed something into J3).

    How can I fix it and bring back my 52840dk functionality? I cannot see the memory content any more and not able to program it.

Related