<?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>Command &amp;#39;dap init&amp;#39; failed. CDBGPWRUPACK=0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103329/command-dap-init-failed-cdbgpwrupack-0</link><description>I b ought three ebyte E104-BT5040U USB dongle but it doesn&amp;#39;t work. 
 
 I was program a ebyte E104-BT5040U USB dongle using openocd。I use daplink (2023-8-24) and openocd 0.12.0 (2023-07-12). 
 
 The chip locked after reset. 
 Then I try recover this chip</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jul 2024 12:01:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103329/command-dap-init-failed-cdbgpwrupack-0" /><item><title>RE: Command 'dap init' failed. CDBGPWRUPACK=0</title><link>https://devzone.nordicsemi.com/thread/495010?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2024 12:01:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34260b8f-ea62-4136-adb5-6a2857b93bf0</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please create a new ticket for this issue,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command 'dap init' failed. CDBGPWRUPACK=0</title><link>https://devzone.nordicsemi.com/thread/494940?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 17:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fae9b7f7-2873-49ce-af78-de9e618346c6</guid><dc:creator>nrdicuser</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog --recover -f NRF52 --log
Recovering device. This operation might take 30s.
[error] [ Client] - Encountered error -21: Command recover executed for 3276 milliseconds with result -21
[error] [ Worker] - Could not connect to CPU core. This may indicate that AP protection is enabled.
Could not find supported CPU.
ERROR: Recover failed. Please make sure that the correct device family is given
ERROR: and try again.

&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command 'dap init' failed. CDBGPWRUPACK=0</title><link>https://devzone.nordicsemi.com/thread/494939?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 16:58:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6531811-defd-42ce-a993-9d9d4dbd2ba7</guid><dc:creator>nrdicuser</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Connecting ...
 - Connecting via USB to probe/ programmer device 0
 - Probe/ Programmer firmware: J-Link V9 compiled May  7 2021 16:26:12
 - Probe/ Programmer S/N: 59768885
 - Device &amp;quot;NRF52840_XXAA&amp;quot; selected.
 - Target interface speed: 4000 kHz (Fixed)
 - VTarget = 3.306V
 - InitTarget() start
 - InitTarget() end - Took 2.75ms
 - Failed to attach to CPU. Trying connect under reset.
 - InitTarget() start
 - InitTarget() end - Took 3.36ms
 - Found SW-DP with ID 0x2BA01477
 - Failed to power up DAP
 - ERROR: Failed to connect.
Could not establish a connection to target.
 - ERROR: Connect failed&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command 'dap init' failed. CDBGPWRUPACK=0</title><link>https://devzone.nordicsemi.com/thread/494471?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 06:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f286585-4f31-41ff-a7c0-55cab3859a4c</guid><dc:creator>nrdicuser</dc:creator><description>&lt;p&gt;I have the same problem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Debug: 111 676 arm_adi_v5.c:679 dap_dp_init(): nrf52.dap
Debug: 112 678 arm_adi_v5.c:711 dap_dp_init(): DAP: wait CDBGPWRUPACK
Debug: 113 681 arm_adi_v5.h:641 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000
...
Debug: 159 1101 arm_adi_v5.h:655 dap_dp_poll_register(): DAP: poll 4 timeout
Debug: 160 1106 command.c:541 run_command(): Command &amp;#39;dap init&amp;#39; failed with error code -5
User : 161 1108 command.c:613 command_run_line():
Debug: 162 1115 command.c:541 run_command(): Command &amp;#39;init&amp;#39; failed with error code -4
User : 163 1120 command.c:613 command_run_line():
Debug: 164 1122 target.c:2171 target_free_all_working_areas_restore(): freeing all working areas
Debug: 165 1137 cmsis_dap.c:1197 cmsis_dap_swd_switch_seq(): SWD-to-JTAG
Debug: 166 1144 cmsis_dap.c:764 cmsis_dap_swd_write_from_queue(): Executing 0 queued transactions from FIFO index 0, same swd ops&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command 'dap init' failed. CDBGPWRUPACK=0</title><link>https://devzone.nordicsemi.com/thread/454353?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 08:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83d52bd6-9c92-4a83-8839-9df2c603ea4a</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please create a new ticket for this issue, a new engineer will be help you out once the ticket has been made,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command 'dap init' failed. CDBGPWRUPACK=0</title><link>https://devzone.nordicsemi.com/thread/454262?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 15:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0b3c0a1-f28d-46f7-a28f-69449bc42759</guid><dc:creator>Gbr</dc:creator><description>&lt;p&gt;The official SEGGER J-LINK just has arrived. Now I can use &amp;quot;nrfjprog --recover -f NRF52 --log&amp;quot;. But the results is similar: I have no access to the device. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Recovering device. This operation might take 30s.&lt;br /&gt;[error] [ Client] - Encountered error -21: Command recover executed for 10012 milliseconds with result -21&lt;br /&gt;[error] [ Worker] - 10 second timeout elapsed, no time left to wait for debug port to power up.&lt;br /&gt;ERROR: Recover failed. Please make sure that the correct device family is given&lt;br /&gt;ERROR: and try again.&lt;/p&gt;
&lt;p&gt;There is no more messages. What is this -21 ? And how could I fix it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command 'dap init' failed. CDBGPWRUPACK=0</title><link>https://devzone.nordicsemi.com/thread/451385?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2023 19:40:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64386bd7-2d33-4de1-8453-ac5f46d5dde5</guid><dc:creator>Gbr</dc:creator><description>&lt;p&gt;Thanks. The supported one is on its way, it will be here in two weeks. However, I&amp;#39;m still wondering why this one is not working. Meanwhile, I have tested another non-official debugger, the black magic probe, and I have the same result. I cannot connect to the thing. I really hope that the official works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command 'dap init' failed. CDBGPWRUPACK=0</title><link>https://devzone.nordicsemi.com/thread/451234?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2023 09:33:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:247b9288-f143-439a-8c21-8655db35fedd</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Use an officially supported debugger, &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command 'dap init' failed. CDBGPWRUPACK=0</title><link>https://devzone.nordicsemi.com/thread/451123?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2023 17:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8542da0f-c973-45bf-9d1c-502895b4b3a4</guid><dc:creator>Gbr</dc:creator><description>&lt;p&gt;I have exactly the same issue! Do you have any solutions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command 'dap init' failed. CDBGPWRUPACK=0</title><link>https://devzone.nordicsemi.com/thread/443857?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 09:08:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:058e2793-fc5b-4b20-a005-0dfa6de8a891</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The only debugger that we officially support is the SEGGER J-link,&lt;/p&gt;
&lt;p&gt;If you want to debug a nRF52840, then I suggest that you use either a standalone debugger from SEGGER or a devkit from us that has a onboard debugger,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>