<?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>Unable to Flash Custom Board MDBT53 using NRF5340 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123851/unable-to-flash-custom-board-mdbt53-using-nrf5340-dk</link><description>Hi there, 
 I am trying to program my custom board hosting a raytac mdbt53 module (powered by a separate USB cable). I have to use the custom connections in P20 connector for the SWD debugging and flashing. Here are my connections as I have learned from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Aug 2025 10:23:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123851/unable-to-flash-custom-board-mdbt53-using-nrf5340-dk" /><item><title>RE: Unable to Flash Custom Board MDBT53 using NRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/547061?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2025 10:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:517ff818-9e48-474e-9d8d-94b9b7a8d497</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Did&amp;nbsp;you try to add the following configurations to disable the DC/DC as you don&amp;#39;t have it on your board?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC_NET=n&lt;/span&gt;&lt;br /&gt;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC_HV=n&lt;/span&gt;&lt;br /&gt;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC_APP=n&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then program the application again and recover both app and core by &lt;strong&gt;nrfjprog.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Or You can try to power the internal regulator internally. If DCDC inductors are missing, externally power the relevant DEC pins to bring the chip out of reset, then immediately recover/flash firmware that disables DCDC. You can read this previous case&amp;nbsp;&lt;/span&gt;(&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/108869/unable-to-recover-nrf5340-flashed-with-invalid-dcdc-configuration" rel="noopener noreferrer" target="_blank"&gt;workaround explanation&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Flash Custom Board MDBT53 using NRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/546491?ContentTypeID=1</link><pubDate>Fri, 22 Aug 2025 15:26:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b979a42-9214-43b8-8daf-e74e42eac215</guid><dc:creator>umer</dc:creator><description>&lt;p&gt;Yes, it is the same 3.3 V.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/121180/recover-nrf5340-mdbt53-custom-board"&gt;Recover nrf5340 (MDBT53) custom board&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From the above link, I have found that I was missing the right configuration settings for disabling the DC/DC mode of operation. As a result, the device is &amp;quot;bricked&amp;quot; and not detected anymore.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there any recovery from this state?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Flash Custom Board MDBT53 using NRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/546454?ContentTypeID=1</link><pubDate>Fri, 22 Aug 2025 11:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:061fba6d-2abf-4430-95b6-2c25a27b7464</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The error seems that debug port can not be connected on your custom board. Most likely the insufficient VDD prevent the custom board to access debug port. Have you measured that the voltage is supplied t custom board is as same as DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Flash Custom Board MDBT53 using NRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/546369?ContentTypeID=1</link><pubDate>Thu, 21 Aug 2025 16:20:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94e1619b-8eb1-4e1d-9cc5-295b7e0af974</guid><dc:creator>umer</dc:creator><description>&lt;p&gt;Update:&lt;br /&gt;&lt;br /&gt;I have been able to flash it once successfully using the nRF Desktop Connect Programmer app. However, for any later attempts, I get the message in the application as given above (and provided here). This is my output when I &amp;quot;Read&amp;quot; the device after &amp;quot;Erase &amp;amp; Write&amp;quot; operation:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;11:17:09.050	Recovering Application core
11:17:09.051	Recovering Application core 0%
11:17:10.381	Recovering Application core 100%
11:17:10.381	Recovering Application core completed
11:17:10.381	Recovering Network core
11:17:10.383	Recovering Network core 0%
11:17:12.020	Recovering Network core 100%
11:17:12.020	Recovering Network core completed
11:17:12.020	Loading core information for Application core
11:17:12.023	Update files regions according to Application core
11:17:12.023	Parse memory regions for file
11:17:12.023	Update files regions according to Network core
11:17:12.023	Parse memory regions for file
11:17:12.025	Loading core information for Application core 0%
11:17:12.025	Loading core information for Application core 100%
11:17:12.026	Loading core information for Application core completed
11:17:12.026	Loading core information for Network core
11:17:12.026	Loading core information for Network core 0%
11:17:12.026	Loading core information for Network core 100%
11:17:12.027	Loading core information for Network core completed
11:17:12.029	Update files regions according to Application core
11:17:12.029	Parse memory regions for file
11:17:12.029	Update files regions according to Network core
11:17:12.029	Parse memory regions for file
11:17:12.645	Writing HEX to Application core
11:17:12.716	Writing HEX to Application core 0%
11:17:13.285	Writing HEX to Application core 50%
11:17:13.285	Writing HEX to Application core 50%
11:17:13.458	Writing HEX to Application core 75%
11:17:13.458	Writing HEX to Application core 100%
11:17:13.469	Writing HEX to Application core completed
11:17:14.438	Error: Failed with exit code 1. One or more device info tasks failed: * 802001162: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn&amp;#39;t disabled (Generic) Message: Operation device-info failed, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn&amp;#39;t disabled.
11:17:14.443	Update files regions according to Application core
11:17:14.443	Parse memory regions for file
11:17:15.098	Reading readback protection status for Application core
11:17:15.099	Reading readback protection status for Application core 0%
11:17:15.261	Failed &amp;quot;reading readback protection status for application core&amp;quot;. Error: code: 1, description: Generic, message: Batch task protection-get failed, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn&amp;#39;t disabled
11:17:15.277	Error: Failed with exit code 1. One or more batch tasks failed: * 802001162: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn&amp;#39;t disabled (Generic) Message: Batch task protection-get failed, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn&amp;#39;t disabled.
11:17:31.323	Error: Failed with exit code 1. One or more device info tasks failed: * 802001162: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn&amp;#39;t disabled (Generic) Message: Operation device-info failed, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn&amp;#39;t disabled.
11:17:31.952	Reading readback protection status for Application core
11:17:31.953	Reading readback protection status for Application core 0%
11:17:32.099	Failed &amp;quot;reading readback protection status for application core&amp;quot;. Error: code: 1, description: Generic, message: Batch task protection-get failed, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn&amp;#39;t disabled
11:17:32.125	Error: Failed with exit code 1. One or more batch tasks failed: * 802001162: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn&amp;#39;t disabled (Generic) Message: Batch task protection-get failed, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn&amp;#39;t disabled.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Flash Custom Board nrf5340 dk</title><link>https://devzone.nordicsemi.com/thread/546315?ContentTypeID=1</link><pubDate>Thu, 21 Aug 2025 09:14:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:709ed397-569b-4331-932c-3d27d8916780</guid><dc:creator>umer</dc:creator><description>&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;Moreover, in the custom board design, care has been taken in connecting VDD and VDDH together for DC/DC operation. Here are the screenshots from the circuit schematic:&lt;/p&gt;
&lt;p&gt;&lt;img height="208" src="https://devzone.nordicsemi.com/resized-image/__size/928x416/__key/communityserver-discussions-components-files/4/pastedimage1755792166539v1.png" width="464" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;2. My custom device does not have an explicitly identified VDD pin. I am using an IC test-clip to bring VDD from the output of the voltage regulator to the SWD connector P20. See the schematic here:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1755767627509v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, this does not help. I still see the same errors on nRF Desktop Programmer application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;One other thing I have tried:&lt;/p&gt;
&lt;p&gt;- I have tried providing voltage supply from the nRF5340 dev kit following the guidelines &lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf5340_dk/page/UG/dk/ext_programming_support_P20.html#ext_programming_support_P20__fig_connect_P20"&gt;here&lt;/a&gt;. I again use the IC test-clip to take the voltage&amp;nbsp; VDD to the voltage regulator output.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there a fundamental reason why this method would not work?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>