nRF51822 chip nRF5 DK chip programing error "Error when running operation: protection.get"

Hello Nordic Representative,

I am currently trying to program/upload a hex file into a new Bluetooth chip (nRF51822) using the nRF5 DK. ID PCA10028. I had previously been able to load files as need with the nRF connect, but I am now suddenly having an error that relates to the error of protection.get. I have tried to resolve this, such as using the nrfjprog --recover command, however this does not seem to work.  nRF Connect for desktop gives Device Protected 

The connection to the chip appears to be correct and everything else seems to operate the same as when I had previously worked on the chips. Attached is a pdf with the related images, both with the error of the connected chip to DK, the connection showing no issues with just the DK using nRF connect, nrfjprog results and a layout of the circuit setup as suggested by the following ticket.  Programming external board from nRF51-DK / nRF52-DK stopped working 

Photos.pptx

  • Hi,

    Have you tried recovering the device using the 'erase all' button in the Programmer app?

    Can you upload the complete log from the Programmer app? Click on 'open log file', copy the contents of the file and upload it here by going to Insert > Code and pasting the log there.

    Best regards,
    Marte

  • Hello Marte,

    I have tried running the erase all button as well. However it reads the following line. "Skipped reading, since at least one core has app readback protection" 

    LOG FILE:

    2023-08-03T20:22:09.075Z DEBUG Application data folder: C:\Users\19apt1\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer
    2023-08-03T20:22:09.130Z DEBUG App pc-nrfconnect-programmer v3.0.9 local
    2023-08-03T20:22:09.130Z DEBUG App path: C:\Users\19apt1\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
    2023-08-03T20:22:09.130Z DEBUG nRFConnect 4.1.2, required by the app is (>=4.0.0)
    2023-08-03T20:22:09.130Z DEBUG nRFConnect path: C:\Users\19apt1\AppData\Local\Programs\nrfconnect\resources\app.asar
    2023-08-03T20:22:09.130Z DEBUG HomeDir: C:\Users\19apt1
    2023-08-03T20:22:09.130Z DEBUG TmpDir: C:\Users\19apt1\AppData\Local\Temp
    2023-08-03T20:22:09.397Z INFO Using nrf-device-lib-js version: 0.6.12
    2023-08-03T20:22:09.397Z INFO Using nrf-device-lib version: 0.15.3
    2023-08-03T20:22:09.397Z INFO Using nrfjprog DLL version: 10.19.1
    2023-08-03T20:22:09.397Z INFO Using JLink version: JLink_V7.88j
    2023-08-03T20:22:09.508Z INFO Getting serialport options from persistent store {E780BE3B-4FC4-11ED-9E27-546CEBC816C0}.pc-nrfconnect-programmer
    2023-08-03T20:22:09.580Z INFO Installed JLink version does not match the provided version (V7.80c)
    2023-08-03T20:22:14.080Z DEBUG Client Id: 43799c24-f0ff-463a-a3a5-95ab40ca8460
    2023-08-03T20:22:14.474Z DEBUG Google Analytics for category pc-nrfconnect-programmer has initialized
    2023-08-03T20:22:18.114Z INFO Getting serialport options from persistent store 000681222439.pc-nrfconnect-programmer
    2023-08-03T20:22:18.599Z INFO Getting serialport options from persistent store 000681222439.pc-nrfconnect-programmer
    2023-08-03T20:22:19.766Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
    2023-08-03T20:22:19.766Z INFO JLink OB firmware version J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 7 2022 16:21:57
    2023-08-03T20:22:19.767Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"architecture","label":"x64"}
    2023-08-03T20:22:19.768Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink OB version","label":"J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 7 2022 16:21:57"}
    2023-08-03T20:22:19.768Z INFO Device family NRF51_FAMILY
    2023-08-03T20:22:19.768Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device family","label":"NRF51_FAMILY"}
    2023-08-03T20:22:19.769Z INFO Device version NRF51xxx_xxAC_REV3
    2023-08-03T20:22:19.769Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device version","label":"NRF51xxx_xxAC_REV3"}
    2023-08-03T20:22:19.769Z INFO Board version PCA10028
    2023-08-03T20:22:19.769Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device board version","label":"PCA10028"}
    2023-08-03T20:22:19.770Z INFO Loading readback protection status for Application core
    2023-08-03T20:22:19.770Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open device","label":"jlink"}
    2023-08-03T20:22:20.030Z INFO Readback protection status: NRFDL_PROTECTION_STATUS_NONE
    2023-08-03T20:22:20.273Z INFO Parse memory regions for Application core
    2023-08-03T20:22:20.274Z INFO Update files regions according to Application core
    2023-08-03T20:22:20.275Z INFO Parse memory regions for file
    2023-08-03T20:22:20.279Z INFO Device is loaded and ready for further operation
    2023-08-03T20:22:20.280Z INFO Reading memory for NRFDL_DEVICE_CORE_APPLICATION core
    2023-08-03T20:22:20.572Z ERROR Failed to get device memory map: async task failure for id: 93033750 msg: [jlink] JLINKARM_DLL_READ_ERROR (Origin: "Error when running device operation fw-read")
    2023-08-03T20:22:20.572Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; x64; v3.0.9; Failed to get device memory map: async task failure for id: 93033750 msg: [jlink] JLINKARM_DLL_READ_ERROR (Origin: \"Error when running device operation fw-read\")"}
    2023-08-03T20:22:20.573Z ERROR Error when reading device
    2023-08-03T20:22:24.461Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Close device","label":""}
    2023-08-03T20:22:24.462Z INFO Target device closed
    2023-08-03T20:22:29.038Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
    2023-08-03T20:22:29.038Z INFO JLink OB firmware version J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 7 2022 16:21:57
    2023-08-03T20:22:29.038Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink OB version","label":"J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 7 2022 16:21:57"}
    2023-08-03T20:22:29.039Z INFO Device family NRF51_FAMILY
    2023-08-03T20:22:29.039Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device family","label":"NRF51_FAMILY"}
    2023-08-03T20:22:29.040Z INFO Device version NRF51xxx_xxAC_REV3
    2023-08-03T20:22:29.040Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device version","label":"NRF51xxx_xxAC_REV3"}
    2023-08-03T20:22:29.040Z INFO Board version PCA10028
    2023-08-03T20:22:29.040Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device board version","label":"PCA10028"}
    2023-08-03T20:22:29.041Z INFO Loading readback protection status for Application core
    2023-08-03T20:22:29.041Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open device","label":"jlink"}
    2023-08-03T20:22:29.429Z ERROR Failed to load readback protection status: async task failure for id: 101794426 msg: [jlink] JLINKARM_DLL_ERROR (Origin: "Error when running operation: protection-get")
    2023-08-03T20:22:29.430Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; x64; v3.0.9; Failed to load readback protection status: async task failure for id: 101794426 msg: [jlink] JLINKARM_DLL_ERROR (Origin: \"Error when running operation: protection-get\")"}
    2023-08-03T20:22:29.432Z INFO Parse memory regions for Application core
    2023-08-03T20:22:29.433Z INFO Update files regions according to Application core
    2023-08-03T20:22:29.433Z INFO Parse memory regions for file
    2023-08-03T20:22:29.435Z INFO Device is loaded and ready for further operation
    2023-08-03T20:22:29.435Z INFO Skipped reading, since at least one core has app readback protection
    2023-08-03T20:22:34.311Z INFO Recovering NRFDL_DEVICE_CORE_APPLICATION core
    2023-08-03T20:22:34.694Z ERROR Failed to recover NRFDL_DEVICE_CORE_APPLICATION core: async task failure for id: 107064957 msg: [jlink] JLINKARM_DLL_ERROR (Origin: "Error when running operation: recover")
    2023-08-03T20:22:34.694Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; x64; v3.0.9; Failed to recover NRFDL_DEVICE_CORE_APPLICATION core: async task failure for id: 107064957 msg: [jlink] JLINKARM_DLL_ERROR (Origin: \"Error when running operation: recover\")"}
    2023-08-03T20:22:34.697Z INFO Device recovery completed
    2023-08-03T20:22:34.698Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
    2023-08-03T20:22:34.698Z INFO JLink OB firmware version J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 7 2022 16:21:57
    2023-08-03T20:22:34.699Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink OB version","label":"J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 7 2022 16:21:57"}
    2023-08-03T20:22:34.699Z INFO Device family NRF51_FAMILY
    2023-08-03T20:22:34.699Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device family","label":"NRF51_FAMILY"}
    2023-08-03T20:22:34.700Z INFO Device version NRF51xxx_xxAC_REV3
    2023-08-03T20:22:34.700Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device version","label":"NRF51xxx_xxAC_REV3"}
    2023-08-03T20:22:34.701Z INFO Board version PCA10028
    2023-08-03T20:22:34.701Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device board version","label":"PCA10028"}
    2023-08-03T20:22:34.702Z INFO Loading readback protection status for Application core
    2023-08-03T20:22:35.095Z ERROR Failed to load readback protection status: async task failure for id: 107455479 msg: [jlink] JLINKARM_DLL_ERROR (Origin: "Error when running operation: protection-get")
    2023-08-03T20:22:35.095Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; x64; v3.0.9; Failed to load readback protection status: async task failure for id: 107455479 msg: [jlink] JLINKARM_DLL_ERROR (Origin: \"Error when running operation: protection-get\")"}
    2023-08-03T20:22:35.098Z INFO Parse memory regions for Application core
    2023-08-03T20:22:35.098Z INFO Update files regions according to Application core
    2023-08-03T20:22:35.099Z INFO Parse memory regions for file
    2023-08-03T20:22:35.100Z INFO Device is loaded and ready for further operation
    2023-08-03T20:22:35.100Z INFO Skipped reading, since at least one core has app readback protection
    2023-08-03T20:22:37.239Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Close device","label":""}
    2023-08-03T20:22:37.240Z INFO Target device closed
    2023-08-03T20:26:40.095Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
    2023-08-03T20:26:40.095Z INFO JLink OB firmware version J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 7 2022 16:21:57
    2023-08-03T20:26:40.096Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink OB version","label":"J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 7 2022 16:21:57"}
    2023-08-03T20:26:40.097Z INFO Device family NRF51_FAMILY
    2023-08-03T20:26:40.097Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device family","label":"NRF51_FAMILY"}
    2023-08-03T20:26:40.098Z INFO Device version NRF51xxx_xxAC_REV3
    2023-08-03T20:26:40.099Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device version","label":"NRF51xxx_xxAC_REV3"}
    2023-08-03T20:26:40.099Z INFO Board version PCA10028
    2023-08-03T20:26:40.100Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device board version","label":"PCA10028"}
    2023-08-03T20:26:40.100Z INFO Loading readback protection status for Application core
    2023-08-03T20:26:40.100Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open device","label":"jlink"}
    2023-08-03T20:26:40.489Z ERROR Failed to load readback protection status: async task failure for id: 352854085 msg: [jlink] JLINKARM_DLL_ERROR (Origin: "Error when running operation: protection-get")
    2023-08-03T20:26:40.490Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; x64; v3.0.9; Failed to load readback protection status: async task failure for id: 352854085 msg: [jlink] JLINKARM_DLL_ERROR (Origin: \"Error when running operation: protection-get\")"}
    2023-08-03T20:26:40.494Z INFO Parse memory regions for Application core
    2023-08-03T20:26:40.495Z INFO Update files regions according to Application core
    2023-08-03T20:26:40.495Z INFO Parse memory regions for file
    2023-08-03T20:26:40.498Z INFO Device is loaded and ready for further operation
    2023-08-03T20:26:40.499Z INFO Skipped reading, since at least one core has app readback protection
    2023-08-03T20:26:42.829Z INFO Recovering NRFDL_DEVICE_CORE_APPLICATION core
    2023-08-03T20:26:43.212Z ERROR Failed to recover NRFDL_DEVICE_CORE_APPLICATION core: async task failure for id: 355583419 msg: [jlink] JLINKARM_DLL_ERROR (Origin: "Error when running operation: recover")
    2023-08-03T20:26:43.212Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; x64; v3.0.9; Failed to recover NRFDL_DEVICE_CORE_APPLICATION core: async task failure for id: 355583419 msg: [jlink] JLINKARM_DLL_ERROR (Origin: \"Error when running operation: recover\")"}
    2023-08-03T20:26:43.214Z INFO Device recovery completed
    2023-08-03T20:26:43.215Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
    2023-08-03T20:26:43.215Z INFO JLink OB firmware version J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 7 2022 16:21:57
    2023-08-03T20:26:43.215Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink OB version","label":"J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 7 2022 16:21:57"}
    2023-08-03T20:26:43.216Z INFO Device family NRF51_FAMILY
    2023-08-03T20:26:43.216Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device family","label":"NRF51_FAMILY"}
    2023-08-03T20:26:43.216Z INFO Device version NRF51xxx_xxAC_REV3
    2023-08-03T20:26:43.216Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device version","label":"NRF51xxx_xxAC_REV3"}
    2023-08-03T20:26:43.217Z INFO Board version PCA10028
    2023-08-03T20:26:43.217Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device board version","label":"PCA10028"}
    2023-08-03T20:26:43.217Z INFO Loading readback protection status for Application core
    2023-08-03T20:26:43.583Z ERROR Failed to load readback protection status: async task failure for id: 355971058 msg: [jlink] JLINKARM_DLL_ERROR (Origin: "Error when running operation: protection-get")
    2023-08-03T20:26:43.583Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; x64; v3.0.9; Failed to load readback protection status: async task failure for id: 355971058 msg: [jlink] JLINKARM_DLL_ERROR (Origin: \"Error when running operation: protection-get\")"}
    2023-08-03T20:26:43.585Z INFO Parse memory regions for Application core
    2023-08-03T20:26:43.586Z INFO Update files regions according to Application core
    2023-08-03T20:26:43.587Z INFO Parse memory regions for file
    2023-08-03T20:26:43.588Z INFO Device is loaded and ready for further operation
    2023-08-03T20:26:43.588Z INFO Skipped reading, since at least one core has app readback protection
    2023-08-03T20:28:49.457Z INFO Recovering NRFDL_DEVICE_CORE_APPLICATION core
    2023-08-03T20:28:49.842Z ERROR Failed to recover NRFDL_DEVICE_CORE_APPLICATION core: async task failure for id: 482039766 msg: [jlink] JLINKARM_DLL_ERROR (Origin: "Error when running operation: recover")
    2023-08-03T20:28:49.842Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; x64; v3.0.9; Failed to recover NRFDL_DEVICE_CORE_APPLICATION core: async task failure for id: 482039766 msg: [jlink] JLINKARM_DLL_ERROR (Origin: \"Error when running operation: recover\")"}
    2023-08-03T20:28:49.844Z INFO Device recovery completed
    2023-08-03T20:28:49.845Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
    2023-08-03T20:28:49.845Z INFO JLink OB firmware version J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 7 2022 16:21:57
    2023-08-03T20:28:49.846Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink OB version","label":"J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 7 2022 16:21:57"}
    2023-08-03T20:28:49.846Z INFO Device family NRF51_FAMILY
    2023-08-03T20:28:49.847Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device family","label":"NRF51_FAMILY"}
    2023-08-03T20:28:49.847Z INFO Device version NRF51xxx_xxAC_REV3
    2023-08-03T20:28:49.847Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device version","label":"NRF51xxx_xxAC_REV3"}
    2023-08-03T20:28:49.848Z INFO Board version PCA10028
    2023-08-03T20:28:49.848Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device board version","label":"PCA10028"}
    2023-08-03T20:28:49.848Z INFO Loading readback protection status for Application core
    2023-08-03T20:28:50.237Z ERROR Failed to load readback protection status: async task failure for id: 482430295 msg: [jlink] JLINKARM_DLL_ERROR (Origin: "Error when running operation: protection-get")
    2023-08-03T20:28:50.237Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; x64; v3.0.9; Failed to load readback protection status: async task failure for id: 482430295 msg: [jlink] JLINKARM_DLL_ERROR (Origin: \"Error when running operation: protection-get\")"}
    2023-08-03T20:28:50.240Z INFO Parse memory regions for Application core
    2023-08-03T20:28:50.241Z INFO Update files regions according to Application core
    2023-08-03T20:28:50.241Z INFO Parse memory regions for file
    2023-08-03T20:28:50.242Z INFO Device is loaded and ready for further operation
    2023-08-03T20:28:50.242Z INFO Skipped reading, since at least one core has app readback protection
    2023-08-03T20:30:41.219Z INFO Parsing HEX file: C:\ncs\nRF51822\nRF5_SDK_12.3.0_d7731ad\UART_hex_Ann uploaded.NRF51822.hex
    2023-08-03T20:30:41.237Z INFO File was last modified at 7/31/2023, 1:52:33 PM
    2023-08-03T20:30:41.259Z INFO Update files regions according to Application core
    2023-08-03T20:30:41.259Z INFO Parse memory regions for file
    2023-08-03T20:30:41.259Z INFO SoftDevice detected, id 0x5A (S110 v7.1.0)
    2023-08-03T20:30:43.315Z INFO Recovering NRFDL_DEVICE_CORE_APPLICATION core
    2023-08-03T20:30:43.704Z ERROR Failed to recover NRFDL_DEVICE_CORE_APPLICATION core: async task failure for id: 595703838 msg: [jlink] JLINKARM_DLL_ERROR (Origin: "Error when running operation: recover")
    2023-08-03T20:30:43.704Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; x64; v3.0.9; Failed to recover NRFDL_DEVICE_CORE_APPLICATION core: async task failure for id: 595703838 msg: [jlink] JLINKARM_DLL_ERROR (Origin: \"Error when running operation: recover\")"}
    2023-08-03T20:30:43.706Z INFO Device recovery completed
    2023-08-03T20:30:43.707Z INFO Writing procedure starts for NRFDL_DEVICE_CORE_APPLICATION core
    2023-08-03T20:30:43.728Z INFO Writing HEX to NRFDL_DEVICE_CORE_APPLICATION core
    2023-08-03T20:30:44.108Z ERROR Device programming failed with error: async task failure for id: 596121060 msg: [jlink] JLINKARM_DLL_ERROR (Origin: "Error when running device operation program")
    2023-08-03T20:30:44.108Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; x64; v3.0.9; Device programming failed with error: async task failure for id: 596121060 msg: [jlink] JLINKARM_DLL_ERROR (Origin: \"Error when running device operation program\")"}
    2023-08-03T20:30:44.109Z INFO Writing HEX to NRFDL_DEVICE_CORE_APPLICATION core completed
    2023-08-03T20:30:44.109Z INFO Writing procedure ends for NRFDL_DEVICE_CORE_APPLICATION core
    2023-08-03T20:31:22.189Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Close device","label":""}
    2023-08-03T20:31:22.191Z INFO Target device closed

  • Hi,

    It seems like the Programmer app is able to connect to the board in the log.

    Can you try to run recover with device family?

    nrfjprog -f nrf51 --recover --log

    Best regards,
    Marte

  • Hi,

    Can you verify that you have it connected like in the second picture in the case you linked to? Make sure to have GND on the nRF51822 connected to GND on both P20 and P1 on the nRF52 DK.

    Best regards,
    Marte

Related