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

Unable to recover NRF52832 running correctly with the last code flashed into.

Hello! I have a custom board with a NRF52832 chip that is working fine with the last program I flashed into. But since yesterday I can’t access it to load a new code (flash again) and neither I can’t recover it.

I’m using J-Link and I have tried to recover it by nRFgo Studio and also with nrfjprog.

The versions I have are these:

         Debugger SEGGER J-Link EDU: v10.10

         nrfjprog.exe: 10.6.0

         jlINKarm.DLL: 6.62d

         nRFgo Studio 1.21.2.10

Although my problem started with other older versions.

When I try to load the new code by KEIL I get these error messages:

And when I try to connect, erase or recover it by nrfjprog I get the following messages and log files:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2020-Mar-04 13:09:31 --------------------------------------------------------------------------------
2020-Mar-04 13:09:31 nrfjprog.exe -f NRF52 --eraseall --log
2020-Mar-04 13:09:31 nrfjprog version 10.6.0
2020-Mar-04 13:09:31 --------------------------------------------------------------------------------
2020-Mar-04 13:09:31 nRF_logger_open
2020-Mar-04 13:09:31 nRF_logger_open: nRFJProg logger opened to callback at address 0X2E0610
2020-Mar-04 13:09:31 nRF_open_dll
2020-Mar-04 13:09:31 nRF_open_dll: Load library at "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\JLINKARM_NRF52_NRFJPROG.dll".
2020-Mar-04 13:09:31 . nRF52_logger_open
2020-Mar-04 13:09:31 . nRF52_logger_open: nRFJProg logger opened to callback at address 0X536FB6D0
2020-Mar-04 13:09:31 . nRF52_open_dll
2020-Mar-04 13:09:31 . . Segger_logger_open
2020-Mar-04 13:09:31 . . Segger_logger_open: nRFJProg logger opened to callback at address 0X52D50300
2020-Mar-04 13:09:31 . . Segger_open_dll
2020-Mar-04 13:09:31 . . Segger_open_dll: Load library at "C:\\Program Files (x86)\\SEGGER\\JLink\\JLinkARM.dll".
2020-Mar-04 13:09:31 . . . Segger_dll_version
2020-Mar-04 13:09:31 . . Segger_set_core_data
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2020-Mar-04 12:32:29 --------------------------------------------------------------------------------
2020-Mar-04 12:32:29 nrfjprog --family NRF52 --recover --log
2020-Mar-04 12:32:29 nrfjprog version 10.6.0
2020-Mar-04 12:32:29 --------------------------------------------------------------------------------
2020-Mar-04 12:32:29 nRF_logger_open
2020-Mar-04 12:32:29 nRF_logger_open: nRFJProg logger opened to callback at address 0X2E0610
2020-Mar-04 12:32:29 nRF_open_dll
2020-Mar-04 12:32:29 nRF_open_dll: Load library at "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\JLINKARM_NRF52_NRFJPROG.dll".
2020-Mar-04 12:32:29 . nRF52_logger_open
2020-Mar-04 12:32:29 . nRF52_logger_open: nRFJProg logger opened to callback at address 0X6033B6D0
2020-Mar-04 12:32:29 . nRF52_open_dll
2020-Mar-04 12:32:29 . . Segger_logger_open
2020-Mar-04 12:32:29 . . Segger_logger_open: nRFJProg logger opened to callback at address 0X5BDF0300
2020-Mar-04 12:32:29 . . Segger_open_dll
2020-Mar-04 12:32:29 . . Segger_open_dll: Load library at "C:\\Program Files (x86)\\SEGGER\\JLink\\JLinkARM.dll".
2020-Mar-04 12:32:29 . . . Segger_dll_version
2020-Mar-04 12:32:29 . . Segger_set_core_data
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2020-Mar-04 13:01:57 --------------------------------------------------------------------------------
2020-Mar-04 13:01:57 nrfjprog.exe -f NRF52 --coprocessor CP_NETWORK --eraseall --log
2020-Mar-04 13:01:57 nrfjprog version 10.6.0
2020-Mar-04 13:01:57 --------------------------------------------------------------------------------
2020-Mar-04 13:01:57 nRF_logger_open
2020-Mar-04 13:01:57 nRF_logger_open: nRFJProg logger opened to callback at address 0X2E0610
2020-Mar-04 13:01:57 nRF_open_dll
2020-Mar-04 13:01:57 nRF_open_dll: Load library at "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\JLINKARM_NRF52_NRFJPROG.dll".
2020-Mar-04 13:01:57 . nRF52_logger_open
2020-Mar-04 13:01:57 . nRF52_logger_open: nRFJProg logger opened to callback at address 0X536FB6D0
2020-Mar-04 13:01:57 . nRF52_open_dll
2020-Mar-04 13:01:57 . . Segger_logger_open
2020-Mar-04 13:01:57 . . Segger_logger_open: nRFJProg logger opened to callback at address 0X52D50300
2020-Mar-04 13:01:57 . . Segger_open_dll
2020-Mar-04 13:01:57 . . Segger_open_dll: Load library at "C:\\Program Files (x86)\\SEGGER\\JLink\\JLinkARM.dll".
2020-Mar-04 13:01:57 . . . Segger_dll_version
2020-Mar-04 13:01:57 . . Segger_set_core_data
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I have read many questions from the forum and no answer was valid for me. I don’t know what else to do and the problem is that I don’t think that my micro is broken because it is running the last code that allows me to even connect with its BLE.

 

My code is based in the “ble_peripheral\ ble_app_uart” example of nRF5_SDK_12.3.0_d7731ad sdk. And before this last code I was loading one that tried to change the flash using the FDS library but without success.

 

May I have removed something of the flash that is needed for being able to erase or recover the micro?

I would appreciate any help. Thanks a lot.