Hello,
I am developing firmware for a custom board using the nRF5340. I have found that I am unable to flash the custom board when using the nRF5340DK as the JTAG device. I am able to flash successfully if I use a SEGGER JLink.
Some pertinent specs are:
- Windows 11 PC
- nRF Connect for Desktop v4.1.2
- Programmer v3.0.9
- nRF Command Line Tools 10.22.0
- SEGGER JLink v7.88i
Here is a copy/paste of the log in the Programmer application when I try to flash using the nRF5340DK.
2023-06-27T17:13:40.567Z DEBUG Application data folder: C:\Users\USER\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer2023-06-27T17:13:40.661Z DEBUG App pc-nrfconnect-programmer v3.0.9 local2023-06-27T17:13:40.661Z DEBUG App path: C:\Users\USER\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer2023-06-27T17:13:40.661Z DEBUG nRFConnect 4.1.2, required by the app is (>=4.0.0)2023-06-27T17:13:40.661Z DEBUG nRFConnect path: C:\Users\USER\AppData\Local\Programs\nrfconnect\resources\app.asar2023-06-27T17:13:40.662Z DEBUG HomeDir: C:\Users\USER2023-06-27T17:13:40.662Z DEBUG TmpDir: C:\Users\USER\AppData\Local\Temp2023-06-27T17:13:41.237Z INFO Installed JLink version does not match the provided version (V7.80c)2023-06-27T17:13:41.324Z INFO Using nrf-device-lib-js version: 0.6.122023-06-27T17:13:41.325Z INFO Using nrf-device-lib version: 0.15.32023-06-27T17:13:41.325Z INFO Using nrfjprog DLL version: 10.19.12023-06-27T17:13:41.325Z INFO Using JLink version: JLink_V7.88i2023-06-27T17:13:41.552Z INFO Getting serialport options from persistent store 001050039906.pc-nrfconnect-programmer2023-06-27T17:13:45.706Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink2023-06-27T17:13:45.706Z INFO JLink OB firmware version J-Link OB-nRF5340-NordicSemi compiled Nov 7 2022 16:22:012023-06-27T17:13:45.707Z INFO Device family2023-06-27T17:13:45.707Z INFO Device version2023-06-27T17:13:45.707Z INFO Board version PCA100952023-06-27T17:13:45.707Z INFO Loading readback protection status for Application core2023-06-27T17:13:46.041Z ERROR Failed to load readback protection status: async task failure for id: 1162544486 msg: [jlink] UNKNOWN_DEVICE (Origin: "Error when running operation: protection-get")2023-06-27T17:13:46.522Z DEBUG Google Analytics for category pc-nrfconnect-programmer has initialized
I then try to recover the device from the command line using nrfjprog and get this output:C:\Users\USER>nrfjprog -f NRF53 --recoverRecovering device. This operation might take 30s.[error] [SeggerBackend] - Encountered unexpected debug port ID 4, expected 6[error] [ nRF53] - Failed while checking eraseprotect status.ERROR: Recover failed. Please make sure that the correct device family is givenERROR: and try again.NOTE: For additional output, try running again with logging enabled (--log).NOTE: Any generated log error messages will be displayed.
This error happens immediately. There are no additional messages if I add the --log option. I also get the same output if I run it with the --coprocessor CP_NETWORK option.
I found the following link and tried its suggestions for installing the 32-bit SEGGER drivers alongside the 64-bit drivers, but this did not solve my problem.
I have tried separately installing and using both the 32-bit and 64-bit versions of the nRF Command Line Tools, but the results are the same.
Since I have seen other forum posts mention this, I should also mention that VDD for our board is 1.8V.
Would anybody be able to help look into this particular error? I would be happy to supply any other required information.
Thanks