<?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>Nrf52840 Custom Board Not Detected After erase from VSCode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119195/nrf52840-custom-board-not-detected-after-erase-from-vscode</link><description>We are facing strange issue we have this board https://www.raytac.com/product/ins.php?index_id=47 
 whenever we flash any firmware it works fine but if we erase from vs code it no more detectable to flash or do anything again ? using nrf connect sdk 2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Mar 2025 07:40:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119195/nrf52840-custom-board-not-detected-after-erase-from-vscode" /><item><title>RE: Nrf52840 Custom Board Not Detected After erase from VSCode</title><link>https://devzone.nordicsemi.com/thread/525441?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 07:40:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2417be4e-2d0c-48a2-a581-038557d70603</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The full log is generated by including &amp;#39;--log&amp;#39; in your nrfjprog command as stated in the nrfjprog output you posted. Anyway, I don&amp;#39;t think it will be needed after all. The error message&amp;nbsp;already shows that the debugger is unable to connect to the target at all. I wonder if this could be due to mismatched IO voltages between the debug probe and the nRF.&lt;/p&gt;
[quote userid="19128" url="~/f/nordic-q-a/119195/nrf52840-custom-board-not-detected-after-erase-from-vscode/524222"]Segger and have connected 3.3v and&amp;nbsp;GND from TTL and SWDIO and SWDCLK from segge[/quote]
&lt;p&gt;I&amp;#39;m not sure&amp;nbsp;I understand what you mean here, but note that the IO voltage on the chip is controlled by the &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/uicr.html#register.REGOUT0"&gt;UICR.REGOUT0 &lt;/a&gt;register when using the &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/power.html#ariaid-title6"&gt;High Voltage mode configuration&lt;/a&gt;&amp;nbsp;and that it is always 1v8 after an eraseall.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 Custom Board Not Detected After erase from VSCode</title><link>https://devzone.nordicsemi.com/thread/525431?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 04:59:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:295b2d81-577b-4126-bf83-569243591a34</guid><dc:creator>Dhaval Dalvadi</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp;&lt;br /&gt;Let me know if anything else needed&lt;br /&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/photo_5F00_6199436854420424453_5F00_x.jpg" /&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/photo_5F00_6199436854420424452_5F00_y.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 Custom Board Not Detected After erase from VSCode</title><link>https://devzone.nordicsemi.com/thread/525430?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 04:56:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01914919-5d99-40d7-9a02-6aa1bc3367bb</guid><dc:creator>Dhaval Dalvadi</dc:creator><description>[deleted]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 Custom Board Not Detected After erase from VSCode</title><link>https://devzone.nordicsemi.com/thread/524992?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2025 08:51:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:929f3624-c67e-4e99-a330-8d187e4bfceb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&amp;nbsp;I don’t see anything in the linked Q&amp;amp;A that appears related to the issue you’re facing. --ids returns the serial numbers of connected&amp;nbsp;J-link probes.&amp;nbsp;Is your J-link driver and nfjprog version up to date? What error do you get when you run --recover? Post nrfjprog log here please.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 Custom Board Not Detected After erase from VSCode</title><link>https://devzone.nordicsemi.com/thread/524964?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2025 06:12:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce59497d-e049-4b31-bbf6-7dd84b77f48f</guid><dc:creator>Dhaval Dalvadi</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp;&lt;br /&gt;I think this post is also similar&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/95404/recovering-nrf52840-dk-after-erasing-in-vs-code-nrfconnect-extension"&gt;Recovering nrf52840 DK after erasing in VS Code nRFconnect extension&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;except its nrf52840DK but we have custom board&lt;br /&gt;&lt;br /&gt;in ids its giving only one as its through segger&amp;nbsp;&lt;br /&gt;working board and non working board both fives single id&amp;nbsp;&lt;br /&gt;&lt;br /&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/photo_5F00_6199704302033944416_5F00_m.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 Custom Board Not Detected After erase from VSCode</title><link>https://devzone.nordicsemi.com/thread/524293?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 10:07:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a72ec7c6-e4be-4579-b537-515d9c0e2386</guid><dc:creator>Dhaval Dalvadi</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp;module is from Raybac but have made our own board as shared schematic&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 Custom Board Not Detected After erase from VSCode</title><link>https://devzone.nordicsemi.com/thread/524292?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 10:06:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:408f08a1-d46a-44cc-9fbe-39752aece25a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;OK,&amp;nbsp;I can&amp;#39;t think of any obvious reasons for this. Please provide as much relevant details as possible. Were you using a board from Raytac?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 Custom Board Not Detected After erase from VSCode</title><link>https://devzone.nordicsemi.com/thread/524291?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 10:03:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7e7c549-4533-4217-9a77-8e338f95b829</guid><dc:creator>Dhaval Dalvadi</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp;had tried nrfjprog --recover but no luck&lt;br /&gt;I see it only happens if have erased board&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 Custom Board Not Detected After erase from VSCode</title><link>https://devzone.nordicsemi.com/thread/524289?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 10:02:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccaecdb3-e06c-4e65-8557-8377f0e0b9db</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please see if you are able to recover the board using &lt;a href="https://docs.nordicsemi.com/bundle/nrfutil/page/README.html"&gt;nrfutil&lt;/a&gt; from the commnand line:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil device recover&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 Custom Board Not Detected After erase from VSCode</title><link>https://devzone.nordicsemi.com/thread/524222?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 04:54:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73e2f1be-04ae-4209-bff5-90be01b22c9e</guid><dc:creator>Dhaval Dalvadi</dc:creator><description>&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/pastedimage1740372753028v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Here is schematic for reference&amp;nbsp;&lt;br /&gt;&lt;br /&gt;connection using Segger and have connected 3.3v and&amp;nbsp;GND from TTL and SWDIO and SWDCLK from segger&amp;nbsp;&lt;br /&gt;it flashes other boards but not if already flashed and trying to reflash this custom board&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Here is the error message from &lt;strong&gt;nRF connect sdk Desktop Programmer&lt;/strong&gt; when try to connect and flash&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;14:44:42.102 Failed &amp;quot;reading readback protection status for application core&amp;quot;. Error: code: 1, description: Generic, message: Batch task protection-get failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1) &lt;br /&gt;14:44:42.313 Error: Failed with exit code 1. One or more batch tasks failed: - [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1), code: Generic. Message: Batch task protection-get failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1). &lt;br /&gt;14:44:42.313 Error: Failed with exit code 1. One or more batch tasks failed: - [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1), code: Generic. Message: Batch task protection-get failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1).&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 Custom Board Not Detected After erase from VSCode</title><link>https://devzone.nordicsemi.com/thread/524078?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 12:46:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75da3827-2341-4f44-a30d-79b0e67c9751</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you&amp;nbsp;created&amp;nbsp;a custom board with the Raytac module&amp;nbsp;in the link, or are you using a Raytac development board? In either case, it would be helpful to see a picture of your setup (board + debugger) along with your board schematics. I can&amp;#39;t think of any obvious reasons why the board would become bricked after an erase.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>