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

    I think I already tried "nrfjprog.exe -f nrf52 --recover" but it didn't work, but I will try again.

    I am now using a different SWD programmer board and it works OK, but I know the JLink works with other boards.

    So the problem is probably somewhere on the custom board.

    I will attach a logic analyser and a scope to the SWD pins and see if I can see a difference between the signals from the JLink and the other programmer.

    Thanks again

    Roger

Reply
  • Thanks

    I think I already tried "nrfjprog.exe -f nrf52 --recover" but it didn't work, but I will try again.

    I am now using a different SWD programmer board and it works OK, but I know the JLink works with other boards.

    So the problem is probably somewhere on the custom board.

    I will attach a logic analyser and a scope to the SWD pins and see if I can see a difference between the signals from the JLink and the other programmer.

    Thanks again

    Roger

Children
No Data
Related