Problems with flashing MDBT50Q-DB-40

Hi everyone,

I am currently trying to flash the MDBT50Q-DB-40 demo board from Raytac but I'm running into some issues with flashing it. I have both referenced the setup guide from Raytac and Nordic:

https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/boards/raytac/mdbt50q_db_40/doc/index.html

https://raytac.blog/2019/01/

When I try and use the programmer app that comes with nrf connect for desktop, it gives me the following errors:

18:10:45.447
Failed "reading readback protection status for application core". Error: code: 9, description: Nrfjlink, message: Batch task protection-get failed, [jlink] CANNOT_CONNECT
18:10:45.451
Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] CANNOT_CONNECT, code: Nrfjlink. Message: Batch task protection-get failed, [jlink] CANNOT_CONNECT.
18:10:45.451
Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] CANNOT_CONNECT, code: Nrfjlink. Message: Batch task protection-get failed, [jlink] CANNOT_CONNECT.
18:11:17.677
Error: Failed with exit code 1. Failed to device info one or more devices: * 1050273084: [jlink] Unable to fetch device-info, code: Generic. Message: Operation device-info failed, [jlink] Unable to fetch device-info.
I've attached the full log file below

 

2024-10-24T22:08:04.100Z INFO Initialising nrfutil module: device
2024-10-24T22:08:04.158Z DEBUG Application data folder: /Users/eric/Library/Application Support/nrfconnect/pc-nrfconnect-programmer
2024-10-24T22:08:04.190Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:08:04.190Z DEBUG App pc-nrfconnect-programmer v4.4.1 (official)
2024-10-24T22:08:04.190Z DEBUG App path: /Users/eric/.nrfconnect-apps/node_modules/pc-nrfconnect-programmer
2024-10-24T22:08:04.190Z DEBUG nRFConnect 5.0.2, required by the app is (>=4.4.1)
2024-10-24T22:08:04.190Z DEBUG nRFConnect path: /Applications/nRF Connect for Desktop.app/Contents/Resources/app.asar
2024-10-24T22:08:04.190Z DEBUG HomeDir: /Users/eric
2024-10-24T22:08:04.190Z DEBUG TmpDir: /var/folders/46/d06cl_tj317dbt9trzz2g2n00000gn/T/
2024-10-24T22:08:04.485Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:08:05.193Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:08:05.194Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:08:05.195Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:08:05.208Z INFO Using nrfutil-device core version: 7.13.0
2024-10-24T22:08:05.310Z INFO Using nrfutil-device version: 2.5.0
2024-10-24T22:08:05.310Z INFO Using nrf-device-lib version: 0.17.26
2024-10-24T22:08:05.310Z INFO Using nrfjprog DLL version: 10.24.2
2024-10-24T22:08:05.310Z INFO Using JLink version: JLink_V7.96f
2024-10-24T22:08:05.310Z WARN Installed JLink version does not match the expected version (JLink_V7.94e)
2024-10-24T22:08:05.401Z INFO Getting serialport options from persistent store 001050273084.pc-nrfconnect-programmer
2024-10-24T22:08:05.402Z DEBUG Sending event "programmer: device connected"
2024-10-24T22:08:07.742Z INFO Selecting device SN: 001050273084
2024-10-24T22:08:07.746Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:08:12.136Z ERROR Error: Failed with exit code 1.
Failed to device info one or more devices:
 * 1050273084: [jlink] CANNOT_CONNECT, code: Nrfjlink.
Message: Operation device-info failed, [jlink] CANNOT_CONNECT.
2024-10-24T22:08:12.136Z INFO Selected device SN: 001050273084
2024-10-24T22:08:12.137Z INFO Using nrfutil device to communicate with target via JLink
2024-10-24T22:08:12.138Z DEBUG Sending event "programmer: device selected"
2024-10-24T22:08:12.138Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:08:12.168Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:08:12.414Z INFO Reading readback protection status for Application core
2024-10-24T22:08:12.415Z INFO Reading readback protection status for Application core 0%
2024-10-24T22:08:12.486Z ERROR Failed "reading readback protection status for application core". Error: code: 9, description: Nrfjlink, message: Batch task protection-get failed, [jlink] INVALID_OPERATION
2024-10-24T22:08:12.488Z ERROR Error: Failed with exit code 1.
One or more batch tasks failed:
 - [jlink] INVALID_OPERATION, code: Nrfjlink.
Message: Batch task protection-get failed, [jlink] INVALID_OPERATION.
2024-10-24T22:08:12.488Z ERROR Error: Failed with exit code 1.
One or more batch tasks failed:
 - [jlink] INVALID_OPERATION, code: Nrfjlink.
Message: Batch task protection-get failed, [jlink] INVALID_OPERATION.
2024-10-24T22:08:40.941Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:08:41.316Z ERROR Error: Failed with exit code 1.
Failed to device info one or more devices:
 * 1050273084: [jlink] Unable to fetch device-info, code: Generic.
Message: Operation device-info failed, [jlink] Unable to fetch device-info.
2024-10-24T22:08:41.317Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:08:41.342Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:08:41.582Z INFO Reading readback protection status for Application core
2024-10-24T22:08:41.582Z INFO Reading readback protection status for Application core 0%
2024-10-24T22:08:41.655Z ERROR Failed "reading readback protection status for application core". Error: code: 9, description: Nrfjlink, message: Batch task protection-get failed, [jlink] INVALID_OPERATION
2024-10-24T22:08:41.657Z ERROR Error: Failed with exit code 1.
One or more batch tasks failed:
 - [jlink] INVALID_OPERATION, code: Nrfjlink.
Message: Batch task protection-get failed, [jlink] INVALID_OPERATION.
2024-10-24T22:10:40.115Z INFO Device deselected
2024-10-24T22:10:40.125Z DEBUG Sending event "programmer: device deselected "
2024-10-24T22:10:41.388Z INFO Selecting device SN: 001050273084
2024-10-24T22:10:41.395Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:10:42.974Z INFO Selected device SN: 001050273084
2024-10-24T22:10:42.974Z INFO Using nrfutil device to communicate with target via JLink
2024-10-24T22:10:42.974Z INFO JLink OB firmware version J-Link OB-nRF5340-NordicSemi compiled Oct  9 2024 11:01:34
2024-10-24T22:10:42.974Z INFO Device family NRF52_FAMILY
2024-10-24T22:10:42.974Z INFO Device version UNKNOWN
2024-10-24T22:10:42.974Z INFO Board version PCA10056
2024-10-24T22:10:42.975Z DEBUG Sending event "programmer: device selected"
2024-10-24T22:10:42.976Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:10:43.001Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:10:43.256Z INFO Reading readback protection status for Application core
2024-10-24T22:10:43.257Z INFO Reading readback protection status for Application core 0%
2024-10-24T22:10:45.447Z ERROR Failed "reading readback protection status for application core". Error: code: 9, description: Nrfjlink, message: Batch task protection-get failed, [jlink] CANNOT_CONNECT
2024-10-24T22:10:45.451Z ERROR Error: Failed with exit code 1.
One or more batch tasks failed:
 - [jlink] CANNOT_CONNECT, code: Nrfjlink.
Message: Batch task protection-get failed, [jlink] CANNOT_CONNECT.
2024-10-24T22:10:45.451Z ERROR Error: Failed with exit code 1.
One or more batch tasks failed:
 - [jlink] CANNOT_CONNECT, code: Nrfjlink.
Message: Batch task protection-get failed, [jlink] CANNOT_CONNECT.
2024-10-24T22:11:17.287Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:11:17.677Z ERROR Error: Failed with exit code 1.
Failed to device info one or more devices:
 * 1050273084: [jlink] Unable to fetch device-info, code: Generic.
Message: Operation device-info failed, [jlink] Unable to fetch device-info.
2024-10-24T22:11:17.678Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:11:17.706Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:11:17.933Z INFO Reading readback protection status for Application core
2024-10-24T22:11:17.934Z INFO Reading readback protection status for Application core 0%
2024-10-24T22:11:19.256Z INFO Reading readback protection status for Application core 100%
2024-10-24T22:11:19.256Z INFO Application core protection status 'NRFDL_PROTECTION_STATUS_NONE'
2024-10-24T22:11:19.256Z INFO Reading readback protection status for Application core completed
2024-10-24T22:11:19.317Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:11:19.707Z ERROR Error: Failed with exit code 1.
One or more reset tasks failed:
 * 1050273084: [jlink] INVALID_OPERATION, code: Nrfjlink.
Message: Failed to reset 1050273084, [jlink] INVALID_OPERATION.
2024-10-24T22:11:32.993Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:11:33.346Z ERROR Error: Failed with exit code 1.
Failed to device info one or more devices:
 * 1050273084: [jlink] Unable to fetch device-info, code: Generic.
Message: Operation device-info failed, [jlink] Unable to fetch device-info.
2024-10-24T22:11:33.346Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:11:33.373Z DEBUG Sending event "programmer: running nrfutil device"
2024-10-24T22:11:33.614Z INFO Reading readback protection status for Application core
2024-10-24T22:11:33.615Z INFO Reading readback protection status for Application core 0%
2024-10-24T22:11:33.688Z ERROR Failed "reading readback protection status for application core". Error: code: 9, description: Nrfjlink, message: Batch task protection-get failed, [jlink] INVALID_OPERATION
2024-10-24T22:11:33.691Z ERROR Error: Failed with exit code 1.
One or more batch tasks failed:
 - [jlink] INVALID_OPERATION, code: Nrfjlink.
Message: Batch task protection-get failed, [jlink] INVALID_OPERATION.

I have also tried to use the nrf connect terminal and the command "west flash --recover" which gives the error:
(base) eric@Erics-MBP fund_less1_exer2 % west flash --recover
-- west flash: rebuilding
ninja: no work to do.
-- west flash: using runner nrfjprog
-- runners.nrfjprog: reset after flashing requested
Using board 1050273084
-- runners.nrfjprog: Recovering and erasing all flash memory.
Recovering device. This operation might take 30s.
[error] [ Client] - Encountered error -21: Command recover executed for 17 milliseconds with result -21
[error] [ Worker] - Encountered unexpected debug port ID 0, expected 2
ERROR: Recover failed. Please make sure that the correct device family is given
ERROR: and try again.
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 62: nrfjprog --recover -f NRF52 --snr 1050273084

I've attached a photo of how i'm linking up the nordic dk with the Raytac board, thanks in advance for your help!

Related