<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bricked device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113231/bricked-device</link><description>Hello, 
 after an attemp to switch to UF2 Bootloader from Open Bootloader my Makedriary nRF52840 MDK USB Dongle stopped working (now shows only the green led always on) and it doesn&amp;#39;t get recognized by my pc. I noticed this guide ( wiki.makerdiary.com</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Oct 2024 19:11:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113231/bricked-device" /><item><title>RE: Bricked device</title><link>https://devzone.nordicsemi.com/thread/505243?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2024 19:11:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5b5eafe-4358-480d-9893-1dc3fa24278b</guid><dc:creator>Fiannax</dc:creator><description>&lt;p&gt;&lt;span&gt;In the end I solved using a chep debug interface (&lt;/span&gt;&lt;a href="https://it.aliexpress.com/item/1005003587741362.html?spm=a2g0o.order_list.order_list_main.72.41923696u5LcUo&amp;amp;gatewayAdapt=glo2ita" rel="nofollow"&gt;https://it.aliexpress.com/item/1005003587741362.html?spm=a2g0o.order_list.order_list_main.72.41923696u5LcUo&amp;amp;gatewayAdapt=glo2ita&lt;/a&gt;&lt;span&gt;) and following this guide (&lt;a href="https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/programming/pitaya-link/"&gt;wiki.makerdiary.com/.../&lt;/a&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bricked device</title><link>https://devzone.nordicsemi.com/thread/500659?ContentTypeID=1</link><pubDate>Sat, 31 Aug 2024 21:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c333973-dd54-43a0-8bf6-782448d1c0b1</guid><dc:creator>polob12</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/priyankakesav"&gt;Priyanka&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;I have connected my dongles as shown &lt;a href="https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/assets/images/daplink_wiring_boards.png"&gt;here&lt;/a&gt; just the left dongle is a nordic in my case ; in dmesg I see that the Nordic dongle is recognised correctly. I also get the DAPLINK drive to place the files on for flashing.&lt;/p&gt;
&lt;p&gt;However, when I put a hex on it, for example &lt;a href="https://github.com/makerdiary/nrf52840-mdk-usb-dongle/blob/main/firmware/uf2_bootloader/0.7.1/uf2_bootloader-nrf52840_mdk_usb_dongle-0.7.1-s140_6.1.1.hex"&gt;uf2_bootloader-nrf52840_mdk_usb_dongle-0.7.1-s140_6.1.1.hex&lt;/a&gt; then it seems to copy it on but then the DAPLINK drive disappears and I get strange output in dmesg :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[188919.077229] usb 1-2: new full-speed USB device number 62 using xhci_hcd
[188919.220160] usb 1-2: New USB device found, idVendor=1915, idProduct=5200, bcdDevice=10.00
[188919.220178] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[188919.220186] usb 1-2: Product: NRF52840 CMSIS-DAP
[188919.220192] usb 1-2: Manufacturer: Arm
[188919.220197] usb 1-2: SerialNumber: 9952360200052840b626ae29d1a50f5c000000006e052840
[188919.225473] usb-storage 1-2:1.0: USB Mass Storage device detected
[188919.226193] scsi host1: usb-storage 1-2:1.0
[188919.226962] cdc_acm 1-2:1.1: ttyACM0: USB ACM device
[188919.228744] hid-generic 0003:1915:5200.0015: hiddev0,hidraw1: USB HID v1.00 Device [Arm NRF52840 CMSIS-DAP] on usb-0000:00:14.0-2/input3
[188920.231930] scsi 1:0:0:0: Direct-Access     MBED     VFS              0.1  PQ: 0 ANSI: 2
[188920.232741] sd 1:0:0:0: Attached scsi generic sg1 type 0
[188920.236798] sd 1:0:0:0: [sdb] 131200 512-byte logical blocks: (67.2 MB/64.1 MiB)
[188920.237074] sd 1:0:0:0: [sdb] Write Protect is off
[188920.237083] sd 1:0:0:0: [sdb] Mode Sense: 03 00 00 00
[188920.237398] sd 1:0:0:0: [sdb] No Caching mode page found
[188920.237410] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[188920.250268]  sdb:
[188920.250304] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[188931.088423] usb 1-2: USB disconnect, device number 62
[188931.103700] device offline error, dev sdb, sector 149 op 0x1:(WRITE) flags 0x800 phys_seg 25 prio class 0
[188931.103914] device offline error, dev sdb, sector 1 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 0
[188931.103934] Buffer I/O error on dev sdb, logical block 1, lost async page write
[188931.104023] device offline error, dev sdb, sector 66 op 0x1:(WRITE) flags 0x100000 phys_seg 1 prio class 0
[188931.104048] Buffer I/O error on dev sdb, logical block 66, lost async page write
[188931.104094] device offline error, dev sdb, sector 131 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 0
[188931.104111] Buffer I/O error on dev sdb, logical block 131, lost async page write
[188931.207093] bio_check_eod: 13 callbacks suppressed
[188931.207096] pool-caja: attempt to access beyond end of device
                sdb: rw=0, sector=0, nr_sectors = 1 limit=0
[188931.207101] FAT-fs (sdb): unable to read boot sector to mark fs as dirty
[188932.617174] usb 1-2: new full-speed USB device number 63 using xhci_hcd
[188932.767052] usb 1-2: New USB device found, idVendor=1915, idProduct=5200, bcdDevice=10.00
[188932.767070] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[188932.767078] usb 1-2: Product: NRF52840 CMSIS-DAP
[188932.767084] usb 1-2: Manufacturer: Arm
[188932.767089] usb 1-2: SerialNumber: 9952360200052840b626ae29d1a50f5c000000006e052840
[188932.774288] usb-storage 1-2:1.0: USB Mass Storage device detected
[188932.775166] scsi host1: usb-storage 1-2:1.0
[188932.776845] cdc_acm 1-2:1.1: ttyACM0: USB ACM device
[188932.780241] hid-generic 0003:1915:5200.0016: hiddev0,hidraw1: USB HID v1.00 Device [Arm NRF52840 CMSIS-DAP] on usb-0000:00:14.0-2/input3
[188933.777947] scsi 1:0:0:0: Direct-Access     MBED     VFS              0.1  PQ: 0 ANSI: 2
[188933.778645] sd 1:0:0:0: Attached scsi generic sg1 type 0
[188933.782323] sd 1:0:0:0: [sdb] 131200 512-byte logical blocks: (67.2 MB/64.1 MiB)
[188933.782819] sd 1:0:0:0: [sdb] Write Protect is off
[188933.782827] sd 1:0:0:0: [sdb] Mode Sense: 03 00 00 00
[188933.783211] sd 1:0:0:0: [sdb] No Caching mode page found
[188933.783222] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[188933.795883]  sdb:
[188933.795917] sd 1:0:0:0: [sdb] Attached SCSI removable disk&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Have you any ideas maybe ? Can I literally wire them like this ? The hardware diagram for the &lt;a href="https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/hardware/#hardware-diagram"&gt;MDK&lt;/a&gt; is clear, but i cannot seem to find a similar diagram for the nordic except &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf52840_dk%2FUG%2Fdk%2Fhw_desc_intro.html"&gt;these&lt;/a&gt; ?&lt;/p&gt;
&lt;p&gt;What is also strange is what I wrote below, I can use my raspberry as swd bitbang and connect to the chip with openocd. But flashing there also does not seem to work.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a bit lost here&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;UPDATE&lt;/p&gt;
&lt;p&gt;Sometimes after putting the hex on the drive, after the adapter resets and the DAPLINK drive is remounted, there is a new file on the drive named assert.txt with contents :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Assert
File: ../../../source/daplink/HardFault_Handler.c
Line: 67
Source: Application
Hexdumps
fffffffd
200004c8
20007ec8
00000000
200004e8
00006107
007a1200
20000000
40000000
00000100
00000000
00000000
00000000
e000ed38&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Pyocd also does not seem to recognise the target correct ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;└──╼ $pyocd list
  #   Probe/Board              Unique ID                                          Target           
---------------------------------------------------------------------------------------------------
  0   Arm NRF52840 CMSIS-DAP   9952360200052840b626ae29d1a50f5c000000006e052840   ✖︎ nrf52840_xxaa  
      Makerdiary               nRF52840-MDK-USB-Dongle  
      
└──╼ $pyocd gdbserver
0000400 C Target type nrf52840_xxaa not recognized. Use &amp;#39;pyocd list --targets&amp;#39; to see currently available target types. See &amp;lt;https://pyocd.io/docs/target_support.html&amp;gt; for how to install additional target support. [__main__]
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bricked device</title><link>https://devzone.nordicsemi.com/thread/500295?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 19:47:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67c99272-8f6c-4ce2-87c8-41ecdadc1fea</guid><dc:creator>polob12</dc:creator><description>&lt;p&gt;Hi, did you manage to flash the nRF52840 MDK with a Nordic nRF52840 Dongle ? I also have the green led permanently on. I can access the chip with openocd via a raspberry pi. I can also erase it and flash another hex/bin and verify the flashed image, but it just stays the same. The green light won&amp;#39;t go out, is always on and device is not even recognised in windows or debian.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Open On-Chip Debugger 0.12.0+dev-00699-ge09bb72da (2024-08-27-18:42)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Info : BCM2835 GPIO JTAG/SWD bitbang driver
Info : clock speed 999 kHz
Info : SWD DPIDR 0x2ba01477
Info : [nrf52840.cpu] Cortex-M4 r0p1 processor detected
Info : [nrf52840.cpu] target has 6 breakpoints, 4 watchpoints
Info : [nrf52840.cpu] Examination succeed
Info : [nrf52840.cpu] starting gdb server on 3333
Info : Listening on port 3333 for gdb connections
[nrf52840.cpu] halted due to breakpoint, current mode: Thread 
xPSR: 00000000 pc: 0x213c0a0a msp: 0x0a0a0a08
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : accepting &amp;#39;telnet&amp;#39; connection on tcp/4444
Info : nRF52840-QI/CAAA(build code: D0) 1024kB Flash, 256kB RAM
Info : Mass erase completed.
[nrf52840.cpu] halted due to breakpoint, current mode: Thread 
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
** Programming Started **
Info : Padding image section 0 at 0x0004aaa1 with 3 bytes (bank write end alignment)
Warn : Adding extra erase range, 0x0004aaa4 .. 0x0004afff
** Programming Finished **
** Verify Started **
** Verified OK **
[nrf52840.cpu] halted due to breakpoint, current mode: Thread 
xPSR: 00000000 pc: 0x213c0a0a msp: 0x0a0a0a08
** Programming Started **
Info : Padding image section 0 at 0x0004aaa1 with 3 bytes (bank write end alignment)
Warn : Adding extra erase range, 0x0004aaa4 .. 0x0004afff
** Programming Finished **
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I would like to try the DAP method you linked to but am struggling to connect the right pins on the Nordic nRF52840 Dongle which is the DAPLINK&lt;/p&gt;
&lt;p&gt;Any guidance would be appreciated, seems to me the Nordic nRF52840 Dongle does not have a RESET pin to connect ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bricked device</title><link>https://devzone.nordicsemi.com/thread/494739?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 09:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66599e5b-faaf-47ca-a562-83a2bc4b3570</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, it should be fine to use the nRF52840 Dongle as programmer for your&amp;nbsp;&lt;span&gt;Makedriary&amp;nbsp;&lt;/span&gt;&lt;span&gt;nRF52840 MDK USB Dongle.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>