Hardware Debugging Xiao BLE Sense with J-Link and Expansion Board

open log at bottom,

2024-02-13T07:42:10.629Z DEBUG Application data folder: C:\Users\Dude\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer
2024-02-13T07:42:10.727Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:42:10.728Z DEBUG App pc-nrfconnect-programmer v4.2.0 (official)
2024-02-13T07:42:10.728Z DEBUG App path: C:\Users\Dude\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
2024-02-13T07:42:10.728Z DEBUG nRFConnect 4.4.0, required by the app is (>=4.3.0)
2024-02-13T07:42:10.728Z DEBUG nRFConnect path: C:\Users\Dude\AppData\Local\Programs\nrfconnect\resources\app.asar
2024-02-13T07:42:10.728Z DEBUG HomeDir: C:\Users\Dude
2024-02-13T07:42:10.728Z DEBUG TmpDir: C:\Users\Dude\AppData\Local\Temp
2024-02-13T07:42:11.276Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:42:11.287Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:42:11.900Z INFO Using nrfutil-device version: 2.0.3
2024-02-13T07:42:11.900Z INFO Using nrf-device-lib version: 0.17.3
2024-02-13T07:42:11.900Z INFO Using nrfjprog DLL version: 10.23.1
2024-02-13T07:42:11.900Z INFO Using JLink version: JLink_V7.88j
2024-02-13T07:42:12.068Z INFO Getting serialport options from persistent store C865297E600C.pc-nrfconnect-programmer
2024-02-13T07:42:12.070Z INFO Getting serialport options from persistent store {CDF664D9-01A0-571A-9CC0-473AD4125C40}.pc-nrfconnect-programmer
2024-02-13T07:42:12.070Z DEBUG Sending usage data "device connected"
2024-02-13T07:42:12.071Z INFO Getting serialport options from persistent store 000601017613.pc-nrfconnect-programmer
2024-02-13T07:42:12.072Z DEBUG Sending usage data "device connected"
2024-02-13T07:42:12.073Z DEBUG Sending usage data "device connected"
2024-02-13T07:42:12.074Z DEBUG Sending usage data "device connected"
2024-02-13T07:42:26.588Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:42:27.865Z INFO Using nrfutil device to communicate with target via JLink
2024-02-13T07:42:27.865Z INFO JLink OB firmware version J-Link V11 compiled Jun 20 2023 17:59:57
2024-02-13T07:42:27.865Z INFO Device family 
2024-02-13T07:42:27.865Z INFO Device version NRF52840_xxAA_REV2
2024-02-13T07:42:27.865Z INFO Board version 
2024-02-13T07:42:27.873Z DEBUG Sending usage data "device selected"
2024-02-13T07:42:27.873Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:42:28.075Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:42:29.041Z INFO Reading readback protection status for Application core
2024-02-13T07:42:29.043Z INFO Reading readback protection status for Application core 0%
2024-02-13T07:42:29.056Z INFO Reading readback protection status for Application core 100%
2024-02-13T07:42:29.056Z INFO Application core protection status 'NRFDL_PROTECTION_STATUS_NONE'
2024-02-13T07:42:29.057Z INFO Reading readback protection status for Application core completed
2024-02-13T07:42:29.345Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:42:29.345Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:42:29.542Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:42:30.553Z INFO Loading core information for Application core
2024-02-13T07:42:30.556Z INFO Loading core information for Application core 0%
2024-02-13T07:42:30.601Z INFO Loading core information for Application core 100%
2024-02-13T07:42:30.602Z INFO Loading core information for Application core completed
2024-02-13T07:42:30.912Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:42:31.104Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:42:32.079Z INFO Reading readback protection status for Application core
2024-02-13T07:42:32.079Z INFO Reading readback protection status for Application core 0%
2024-02-13T07:42:32.094Z INFO Reading readback protection status for Application core 100%
2024-02-13T07:42:32.094Z INFO Application core protection status 'NRFDL_PROTECTION_STATUS_NONE'
2024-02-13T07:42:32.095Z INFO Reading readback protection status for Application core completed
2024-02-13T07:42:32.374Z INFO Device is loaded and ready for further operation

You update the NRF util?

12:47:14.144	Using nrfutil-device version: 2.0.3
12:47:14.146	Using nrf-device-lib version: 0.17.3
12:47:14.146	Using nrfjprog DLL version: 10.23.1
12:47:14.147	Using JLink version: JLink_V7.94i
12:47:14.148	Installed JLink version does not match the expected version (JLink_V7.88j)
12:47:29.399	Getting serialport options from persistent store {80B303C9-5A25-5D51-8D32-8C61947D1F7D}.pc-nrfconnect-programmer
12:47:29.401	Getting serialport options from persistent store 004294967295.pc-nrfconnect-programmer
12:48:07.511	Recovering Application core
12:48:07.512	Failed to recovering application core core. Error: [object Object], message: Batch task recover failed, [jlink] JLINKARM_DLL_ERROR
12:48:07.672	Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink. Message: Batch task recover failed, [jlink] JLINKARM_DLL_ERROR.
12:48:07.777	Error: Failed with exit code 1. Failed to device info one or more devices: * 4294967295: [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink. Message: Operation device-info failed, [jlink] JLINKARM_DLL_ERROR.
12:48:07.780	Using nrfutil device to communicate with target via JLink
12:48:24.312	Reading readback protection status for Application core
12:48:24.320	Failed to reading readback protection status for application core core. Error: [object Object], message: Batch task protection-get failed, [jlink] JLINKARM_DLL_ERROR
12:48:24.464	Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink. Message: Batch task protection-get failed, [jlink] JLINKARM_DLL_ERROR.
12:48:24.467	Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink. Message: Batch task protection-get failed, [jlink] JLINKARM_DLL_ERROR.

Yes, I have run into that b4, It doesn’t like the jlink version your using?

Reboot

2024-02-13T07:47:12.701Z DEBUG Application data folder: C:\Users\hp 840 G5\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer
2024-02-13T07:47:12.801Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:47:12.802Z DEBUG App pc-nrfconnect-programmer v4.2.0 (official)
2024-02-13T07:47:12.802Z DEBUG App path: C:\Users\hp 840 G5\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
2024-02-13T07:47:12.802Z DEBUG nRFConnect 4.4.0, required by the app is (>=4.3.0)
2024-02-13T07:47:12.802Z DEBUG nRFConnect path: C:\Users\hp 840 G5\AppData\Local\Programs\nrfconnect\resources\app.asar
2024-02-13T07:47:12.802Z DEBUG HomeDir: C:\Users\hp 840 G5
2024-02-13T07:47:12.802Z DEBUG TmpDir: C:\Users\HP840G~1\AppData\Local\Temp
2024-02-13T07:47:13.475Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:47:13.484Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:47:14.144Z INFO Using nrfutil-device version: 2.0.3
2024-02-13T07:47:14.146Z INFO Using nrf-device-lib version: 0.17.3
2024-02-13T07:47:14.146Z INFO Using nrfjprog DLL version: 10.23.1
2024-02-13T07:47:14.147Z INFO Using JLink version: JLink_V7.94i
2024-02-13T07:47:14.148Z WARN Installed JLink version does not match the expected version (JLink_V7.88j)
2024-02-13T07:47:29.399Z INFO Getting serialport options from persistent store {80B303C9-5A25-5D51-8D32-8C61947D1F7D}.pc-nrfconnect-programmer
2024-02-13T07:47:29.401Z INFO Getting serialport options from persistent store 004294967295.pc-nrfconnect-programmer
2024-02-13T07:47:29.401Z DEBUG Sending usage data "device connected"
2024-02-13T07:47:29.402Z DEBUG Sending usage data "device connected"
2024-02-13T07:47:29.402Z DEBUG Sending usage data "device connected"
2024-02-13T07:47:34.564Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:47:42.542Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:47:42.543Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:47:42.543Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:47:42.855Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:48:07.511Z INFO Recovering Application core
2024-02-13T07:48:07.512Z ERROR Failed to recovering application core core. Error: [object Object], message: Batch task recover failed, [jlink] JLINKARM_DLL_ERROR
2024-02-13T07:48:07.672Z ERROR Error: Failed with exit code 1.
One or more batch tasks failed:
 - [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink.
Message: Batch task recover failed, [jlink] JLINKARM_DLL_ERROR.
2024-02-13T07:48:07.777Z ERROR Error: Failed with exit code 1.
Failed to device info one or more devices:
 * 4294967295: [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink.
Message: Operation device-info failed, [jlink] JLINKARM_DLL_ERROR.
2024-02-13T07:48:07.780Z INFO Using nrfutil device to communicate with target via JLink
2024-02-13T07:48:07.795Z DEBUG Sending usage data "device selected"
2024-02-13T07:48:07.795Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:48:08.039Z DEBUG Sending usage data "running nrfutil device"
2024-02-13T07:48:24.312Z INFO Reading readback protection status for Application core
2024-02-13T07:48:24.320Z ERROR Failed to reading readback protection status for application core core. Error: [object Object], message: Batch task protection-get failed, [jlink] JLINKARM_DLL_ERROR
2024-02-13T07:48:24.464Z ERROR Error: Failed with exit code 1.
One or more batch tasks failed:
 - [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink.
Message: Batch task protection-get failed, [jlink] JLINKARM_DLL_ERROR.
2024-02-13T07:48:24.467Z ERROR Error: Failed with exit code 1.
One or more batch tasks failed:
 - [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink.
Message: Batch task protection-get failed, [jlink] JLINKARM_DLL_ERROR.


j flash give error while flashing bootloader

change cpu and flashed success

but now usb not showing in Arduino ide i flashed hex file of blink led not blinking

Nrf connect still same error installed jtag required version restarted not solved

Update flashed hex file from Appdata Arduino folder bootloader and disconnect and reconnect seeeduino start showing as usb device

Hi there,
I don’t use the J-flash, I use programmer in Nrf_desktop for flashing ,it’s more visual, Get that to work and the others will too. Did you use latest download?
GL :slight_smile: PJ
you’re very close… You get it!

Yes, I am using latest version.