Recently I acquired an Adafruiit Feather Express nrf52840 and wished to remove its custom bootloader that comes preloaded onto it. In my efforts to do so, I encountered an error after successfully flashing a build via nRFConnect with the added feature of CONFIG_SECURE_BOOT=y to my prj.conf.
Each time I select my developer kit in the programmer app, the dk board resets after attempting to read the Adafruit Feather memory. My best guess is that its memory is secured and locked from being read due to the immutable bootloader. The same error is present after reflashing the application in nRFConnect.
My current hardware setup uses the nRF5340dk as a JLink that flashes an external chip(Adafruit Feather Express nRF52840) via SWD on P19.
Here are the results in nRFConnect when I attempt to reflash my application.
Flashing build to 960112782 west flash -d h:\Develop\nordicsemi\led_ws2812\build --skip-rebuild -r nrfjprog --dev-id 960112782 -- west flash: using runner nrfjprog -- runners.nrfjprog: Flashing file: h:\Develop\nordicsemi\led_ws2812\build\zephyr\zephyr.hex Parsing image file. Verifying programming. ERROR: The JLinkARM DLL timed out while communicating to the J-Link probe. ERROR: If the error condition persists, run the same command again with ERROR: argument -- log, contact Nordic Semiconductor and provide the generated ERROR: log.log file to them. NOTE: For additional output, try running again with logging enabled (--log). NOTE: Any generated log error messages will be displayed. FATAL ERROR: command exited with status 35: nrfjprog --program 'h:\Develop\nordicsemi\led_ws2812\build\zephyr\zephyr.hex' --sectoranduicrerase --verify -f NRF52 --snr 960112782
Here are the results in Programmer v3.04 when I attempt to select my nRF5340DK

Below is the log from the Programmer App
2023-01-22T21:38:22.773Z DEBUG Application data folder: C:\Users\tdogs\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer
2023-01-22T21:38:22.820Z INFO Using nrf-device-lib-js version: 0.4.13
2023-01-22T21:38:22.820Z INFO Using nrf-device-lib version: 0.12.8
2023-01-22T21:38:22.820Z INFO Using nrfjprog DLL version: 10.16.0
2023-01-22T21:38:22.821Z INFO Using JLink version: JLink_V7.66a
2023-01-22T21:38:22.844Z DEBUG App pc-nrfconnect-programmer v3.0.4 official
2023-01-22T21:38:22.844Z DEBUG App path: C:\Users\tdogs\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
2023-01-22T21:38:22.844Z DEBUG nRFConnect 3.12.0, required by the app is (^3.12.0)
2023-01-22T21:38:22.844Z DEBUG nRFConnect path: C:\Users\tdogs\AppData\Local\Programs\nrfconnect\resources\app.asar
2023-01-22T21:38:22.844Z DEBUG HomeDir: C:\Users\tdogs
2023-01-22T21:38:22.844Z DEBUG TmpDir: C:\Users\tdogs\AppData\Local\Temp
2023-01-22T21:38:24.523Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
2023-01-22T21:38:24.523Z INFO JLink OB firmware version J-Link OB-K22-NordicSemi compiled Dec 3 2021 15:46:55
2023-01-22T21:38:24.523Z INFO Device family NRF52_FAMILY
2023-01-22T21:38:24.523Z INFO Device version NRF52840_xxAA_REV2
2023-01-22T21:38:24.523Z INFO Board version PCA10095
2023-01-22T21:38:24.523Z INFO Loading readback protection status for Application core
2023-01-22T21:38:25.159Z INFO Readback protection status: NRFDL_PROTECTION_STATUS_NONE
2023-01-22T21:38:25.740Z INFO Parse memory regions for Application core
2023-01-22T21:38:25.742Z INFO Update files regions according to Application core
2023-01-22T21:38:25.742Z INFO Parse memory regions for file
2023-01-22T21:38:25.746Z INFO Device is loaded and ready for further operation
2023-01-22T21:38:25.747Z INFO Reading memory for NRFDL_DEVICE_CORE_APPLICATION core
2023-01-22T21:38:26.398Z INFO Target device closed
2023-01-22T21:38:26.407Z ERROR Failed to get device memory map: async task failure for id: 11461833105 msg: JLINKARM_DLL_TIME_OUT_ERROR (Origin: "Error when running fw program.")
2023-01-22T21:38:26.407Z ERROR Error when reading device
2023-01-22T21:38:27.781Z DEBUG Client Id: 4e2baff5-19a2-4936-ad96-d1dd9ab8b508
2023-01-22T21:38:28.580Z DEBUG Google Analytics for category pc-nrfconnect-programmer has initialized
2023-01-22T21:55:17.356Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
2023-01-22T21:55:17.358Z INFO JLink OB firmware version J-Link OB-K22-NordicSemi compiled Dec 3 2021 15:46:55
2023-01-22T21:55:17.358Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink OB version","label":"J-Link OB-K22-NordicSemi compiled Dec 3 2021 15:46:55"}
2023-01-22T21:55:17.360Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device family","label":"NRF52_FAMILY"}
2023-01-22T21:55:17.361Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device version","label":"NRF52840_xxAA_REV2"}
2023-01-22T21:55:17.362Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device board version","label":"PCA10095"}
2023-01-22T21:55:17.362Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open device","label":"jlink"}
2023-01-22T21:55:17.363Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Close device","label":""}
2023-01-22T21:55:17.363Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; ia32; v3.0.4; Failed to get device memory map: async task failure for id: 11461833105 msg: JLINKARM_DLL_TIME_OUT_ERROR (Origin: \"Error when running fw program.\")"}
2023-01-22T21:55:17.364Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"architecture","label":"ia32"}
2023-01-22T21:55:17.364Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink OB version","label":"J-Link OB-K22-NordicSemi compiled Dec 3 2021 15:46:55"}
2023-01-22T21:55:17.365Z INFO Device family NRF52_FAMILY
2023-01-22T21:55:17.365Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device family","label":"NRF52_FAMILY"}
2023-01-22T21:55:17.365Z INFO Device version NRF52840_xxAA_REV2
2023-01-22T21:55:17.366Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device version","label":"NRF52840_xxAA_REV2"}
2023-01-22T21:55:17.366Z INFO Board version PCA10095
2023-01-22T21:55:17.366Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device board version","label":"PCA10095"}
2023-01-22T21:55:17.367Z INFO Loading readback protection status for Application core
2023-01-22T21:55:17.367Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open device","label":"jlink"}
2023-01-22T21:55:17.975Z INFO Readback protection status: NRFDL_PROTECTION_STATUS_NONE
2023-01-22T21:55:18.544Z INFO Parse memory regions for Application core
2023-01-22T21:55:18.546Z INFO Update files regions according to Application core
2023-01-22T21:55:18.546Z INFO Parse memory regions for file
2023-01-22T21:55:18.548Z INFO Device is loaded and ready for further operation
2023-01-22T21:55:18.549Z INFO Reading memory for NRFDL_DEVICE_CORE_APPLICATION core
2023-01-22T21:55:19.174Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Close device","label":""}
2023-01-22T21:55:19.175Z INFO Target device closed
2023-01-22T21:55:19.187Z ERROR Failed to get device memory map: async task failure for id: 12474634234 msg: JLINKARM_DLL_TIME_OUT_ERROR (Origin: "Error when running fw program.")
2023-01-22T21:55:19.187Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; ia32; v3.0.4; Failed to get device memory map: async task failure for id: 12474634234 msg: JLINKARM_DLL_TIME_OUT_ERROR (Origin: \"Error when running fw program.\")"}
2023-01-22T21:55:19.188Z ERROR Error when reading device