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

Programming error JLinkARM.dll CORESIGHT_WriteAPDPReg

Can someone tell me what these errors actually mean

JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1. JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -102.

When programming a custom nRF52832 board using JLink.

I seem to intermittently get them, and no matter how many times I run nrfjprog --reset --f nRF52 it keeps giving the error

Strangely if I open in JFlash and try repeatedly to connect, after about 5 attempts the problem seems to resolve its self.

I'm wondering if this is a power supply problem ?

But knowing what the message means would be useful

Thanks

Parents
  • nrfjprog.exe --reset -f nrf52 --log

    nrfjprog verion 9.6.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.
    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.
    

    JLink version is the one installed by nrftools, 6.16a

    But I tried older versions of the jlink DLL and had the same problem.

    What is the APDRP register ??

Reply
  • nrfjprog.exe --reset -f nrf52 --log

    nrfjprog verion 9.6.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.
    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.
    

    JLink version is the one installed by nrftools, 6.16a

    But I tried older versions of the jlink DLL and had the same problem.

    What is the APDRP register ??

Children
No Data
Related