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
  • I discussed this with one of our toolchain engineers and its hard to say what exactly the issue is since the -1 and -102 are generic error codes returned by the JLinkARM dll for which Segger's documentation offers no specific explanation other than that an error has occurred. Have you tried recovering the chip, i.e. nrfjprog.exe -f nrf52 --recover? In a similar case, here is the link, it turned out that there was a HW issue with the board. Do you have another custom board that you can try to program ?

Reply
  • I discussed this with one of our toolchain engineers and its hard to say what exactly the issue is since the -1 and -102 are generic error codes returned by the JLinkARM dll for which Segger's documentation offers no specific explanation other than that an error has occurred. Have you tried recovering the chip, i.e. nrfjprog.exe -f nrf52 --recover? In a similar case, here is the link, it turned out that there was a HW issue with the board. Do you have another custom board that you can try to program ?

Children
No Data
Related