<?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>STLINK-V2 -&amp;gt; ChipID = 0 / timed out while waiting for target halted</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63589/stlink-v2---chipid-0-timed-out-while-waiting-for-target-halted</link><description>I&amp;#39;m beginner with nrf chips. 
 I have a custom board with ntf52840 module. I connect board to stlink via swd interface, then check: 
 st-info --probe Found 1 stlink programmers serial: 2c38010032124353354b4e00 openocd: &amp;quot;\x2c\x38\x01\x00\x32\x12\x43\x53</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jul 2020 15:15:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63589/stlink-v2---chipid-0-timed-out-while-waiting-for-target-halted" /><item><title>RE: STLINK-V2 -&gt; ChipID = 0 / timed out while waiting for target halted</title><link>https://devzone.nordicsemi.com/thread/259497?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 15:15:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80d8c50e-ddcc-4918-bdff-697d76a87e59</guid><dc:creator>VyacheslavSS</dc:creator><description>&lt;p&gt;that problem solved.&lt;/p&gt;
&lt;p&gt;/usr/local/bin/openocd -f $(OPENOCD_HOME)/interface/&lt;strong&gt;stlink-dap.cfg&lt;/strong&gt; -f $(OPENOCD_HOME)/target/nrf52.cfg&lt;/p&gt;
&lt;p&gt;and &lt;br /&gt;&lt;br /&gt;&amp;gt;dap apreg 1 0x04 0x01&lt;/p&gt;
&lt;p&gt;unlocking chip.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And next. Chip is 52840&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I download SDK nrf5_SDK_for_Mesh_v4.2.0_src.&lt;/p&gt;
&lt;p&gt;Then upload softdevice: s140_nrf52_6.0.0_softdevice.hex (or s140_nrf52_7.0.1_softdevice.hex)&lt;/p&gt;
&lt;p&gt;and demo: blinky_nrf52840_xxAA_s140_6.0.0.hex (or blinky_nrf52840_xxAA_s140_7.0.1.hex)&lt;/p&gt;
&lt;p&gt;by:&lt;/p&gt;
&lt;p&gt;write_blinky600: &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$(OCD) -c init -c &amp;quot;reset halt&amp;quot; -c &amp;quot;flash write_image $(BLINKY_FILE_140_600)&amp;quot; -c &amp;quot;flash write_image $(BLINKY_FILE_140_600)&amp;quot; -c reset -c exit&lt;br /&gt;&lt;br /&gt;write_blinky701:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$(OCD) -c init -c &amp;quot;reset halt&amp;quot; -c &amp;quot;flash write_image $(SOFTDEV_140_701)&amp;quot; -c &amp;quot;flash write_image $(BLINKY_FILE_140_701)&amp;quot; -c reset -c exit&lt;/p&gt;
&lt;p&gt;Output log:&lt;/p&gt;
&lt;p&gt;Open On-Chip Debugger 0.10.0+dev-01321-ge8cfdd4a-dirty (2020-07-10-11:52)&lt;br /&gt;Licensed under GNU GPL v2&lt;br /&gt;For bug reports, read&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;a href="http://openocd.org/doc/doxygen/bugs.html"&gt;openocd.org/.../bugs.html&lt;/a&gt;&lt;br /&gt;Info : auto-selecting first available session transport &amp;quot;hla_swd&amp;quot;. To override use &amp;#39;transport select &amp;lt;transport&amp;gt;&amp;#39;.&lt;br /&gt;Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD&lt;br /&gt;&lt;br /&gt;nRF52 device has a CTRL-AP dedicated to recover the device from AP lock.&lt;br /&gt;A high level adapter (like a ST-Link) you are currently using cannot access&lt;br /&gt;the CTRL-AP so &amp;#39;nrf52_recover&amp;#39; command will not work.&lt;br /&gt;Do not enable UICR APPROTECT.&lt;br /&gt;&lt;br /&gt;Info : clock speed 1000 kHz&lt;br /&gt;Info : STLINK V2J29S7 (API v2) VID:PID 0483:3748&lt;br /&gt;Info : Target voltage: 3.176563&lt;br /&gt;Info : nrf52.cpu: hardware has 6 breakpoints, 4 watchpoints&lt;br /&gt;Info : starting gdb server for nrf52.cpu on 3333&lt;br /&gt;Info : Listening on port 3333 for gdb connections&lt;br /&gt;target halted due to debug-request, current mode: Thread &lt;br /&gt;xPSR: 0x01000000 pc: 0x00000880 msp: 0x20000400&lt;br /&gt;Info : nRF52840-xxAA(build code: C0) 1024kB Flash, 256kB RAM&lt;br /&gt;Warn : Flash protection of this nRF device is not supported&lt;br /&gt;wrote 1656 bytes from file /home/shubin/electronic/firmware/nrf/nrf5_SDK_for_Mesh_v4.2.0_src/bin/blinky/blinky_nrf52840_xxAA_s140_6.0.0.hex in 0.097093s (16.656 KiB/s)&lt;br /&gt;&lt;br /&gt;wrote 1656 bytes from file /home/shubin/electronic/firmware/nrf/nrf5_SDK_for_Mesh_v4.2.0_src/bin/blinky/blinky_nrf52840_xxAA_s140_6.0.0.hex in 0.091625s (17.650 KiB/s)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Looking for device at nRF Blinky Android software. Nothing found&lt;/p&gt;
&lt;p&gt;Led not blinked.&lt;/p&gt;
&lt;p&gt;One time, i don&amp;#39;t remember, &lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;what combination was used, the diode began to blink with a frequency of 2 Hz, but device scanner nothing found.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STLINK-V2 -&gt; ChipID = 0 / timed out while waiting for target halted</title><link>https://devzone.nordicsemi.com/thread/259447?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 12:48:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39036f1e-1477-4fde-ba45-78309a8465f5</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately we do not know this debugger and do not support it. We know that some have used it and that it might work in some cases or with some tools, but we can not give any guarantees. There is some material on Devzone, I recommend that you try searching for your answer.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>