This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can't flash PCA10040

Hi

I have a PCA10040 V1.1.0 that my company has been using to flash test code onto other nRF52832 chips (I don't know the details, but it has wires attached to the debug out). I'm trying to use this board with nRF Connect, but I can't update the firmware. After plugging the board into the computer, I get this message: Detected firmware version 104.191.12. Do you want to update to version 1.1.0? After clicking ok, I get this error message: Error occurred opening serial port. (NRF_ERROR_TIMEOUT). In addition, I tried flash erasing the board with nrfjprog but I get this 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.

Here is the log.log file:

  1 ----------------------------------------------------------------------------    ----
  2 nrfjprog --family nRF52 -e --log
  3 nrfjprog verion 9.5.0
  4 ----------------------------------------------------------------------------    ----
  5 FUNCTION: open_dll.
  6 FUNCTION: open_dll.
  7 FUNCTION: enum_emu_snr.
  8 FUNCTION: enum_emu_snr.
  9 FUNCTION: enum_emu_snr.
 10 FUNCTION: enum_emu_snr.
 11 FUNCTION: connect_to_emu_with_snr.
 12 FUNCTION: connect_to_emu_with_snr.
 13 FUNCTION: connect_to_emu_without_snr.
 14 FUNCTION: enum_emu_snr.
 15 Device "NRF52832_XXAA" selected.
 16 FUNCTION: read_device_version.
 17 FUNCTION: read_device_version.
 18 JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.
 19 JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -102.
 20 FUNCTION: close_dll.
 21 FUNCTION: close_dll.

I'm wondering if there is some protected flash memory on the device? I've tried asking other employees who set it up initially, but no one seems to know...

Also I have a PCA10040 V1.1.1 that works fine in both of the above circumstances, so I'm pretty sure these problems are not with the computer/software setup.

Many thanks

Parents
  • I'm not sure. Suspecting a hardware issue since you are able to flash external chips. Have you checked that the chip is powered? I guess you could also try to use Debug In, and see if you can program it with the working PCA10040 v1.1.1, when running with a battery or similar.

Reply
  • I'm not sure. Suspecting a hardware issue since you are able to flash external chips. Have you checked that the chip is powered? I guess you could also try to use Debug In, and see if you can program it with the working PCA10040 v1.1.1, when running with a battery or similar.

Children
No Data
Related