<?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>Programming nRF52832 custom board using nRF52840DK via SWD</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119210/programming-nrf52832-custom-board-using-nrf52840dk-via-swd</link><description>Hi, 
 I had a problem while programming my custom nRF52832 board using nRF52840DK. I am using this connection that I found in the Nordic Devzone forum. I am trying to program my custom board using nrfjprog. I can see my board when I print the nrfjprog</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Feb 2025 09:38:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119210/programming-nrf52832-custom-board-using-nrf52840dk-via-swd" /><item><title>RE: Programming nRF52832 custom board using nRF52840DK via SWD</title><link>https://devzone.nordicsemi.com/thread/524281?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 09:38:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14edc1fd-7097-457f-a4a6-8f1b184b7093</guid><dc:creator>omerBzkrt</dc:creator><description>&lt;p&gt;Sorry for asking questions again and again.&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;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;/li&gt;
&lt;li&gt;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;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I do the connections and try to read from the nRF connect for the desktop. I got this error.&amp;nbsp;What might be causing the problem? Could it be that the debugger on the nRF52840DK does not recognize the nRF52832 chip?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming nRF52832 custom board using nRF52840DK via SWD</title><link>https://devzone.nordicsemi.com/thread/524274?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 09:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b28f4db-5d5a-4e60-a9c6-02efe559cbfd</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;Follow the HW user guide for the nRF5 DK (updated to match the new OBD), check that you have the correct VDD level on your board and just use nRF Connect for Desktop to program the target, should all be supported today.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming nRF52832 custom board using nRF52840DK via SWD</title><link>https://devzone.nordicsemi.com/thread/524270?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 09:13:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7963ce75-1044-4c07-9165-2587a177505b</guid><dc:creator>omerBzkrt</dc:creator><description>&lt;p&gt;Could you provide a roadmap to flash my program into the custom board using nRF Connect for Desktop?&lt;/p&gt;
&lt;p&gt;Which steps should I follow after when I do the HW connections?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming nRF52832 custom board using nRF52840DK via SWD</title><link>https://devzone.nordicsemi.com/thread/524264?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 09:03:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d640f6b-b08a-432e-89ab-cc3db2a1606b</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;Not sure about the comman line interface as I always use nRF Connect for Desktop. This does use the CLI so this is supported in the CLI, did you look through tha commands?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming nRF52832 custom board using nRF52840DK via SWD</title><link>https://devzone.nordicsemi.com/thread/524239?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 07:27:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26cbd238-a73e-4203-831b-63520106dc75</guid><dc:creator>omerBzkrt</dc:creator><description>&lt;p&gt;Hi PaKa thanks for your reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The DK that I use is the nRF52840 3.0.0 version. I have attached my development board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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/nrfimage.jpeg" /&gt;&lt;/p&gt;
&lt;p&gt;As you said, I think I am using the newer version. So, no GND_DETECT is specified in this version.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How can I double-check the memory size (any nrfjprog command)?&lt;/li&gt;
&lt;li&gt;Is there any easiest way to flash the external device instead of nrfjprog?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I am coding my device from Segger Embedded Studio. Again, thanks for your reply.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming nRF52832 custom board using nRF52840DK via SWD</title><link>https://devzone.nordicsemi.com/thread/524210?ContentTypeID=1</link><pubDate>Sun, 23 Feb 2025 15:40:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a4a2ea2-e62f-4db4-a9ba-54bc60f665a3</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;What version is the nRF52840 DK you have? The connection you have listed should work with the latest HW version (3.x.y) but won&amp;#39;t work with older kits. If you have the large debugger chip (the big chip just above your GND line) then you need to have one additional signal that connects the &amp;quot;GND DETECT&amp;quot; pin to GND when you plug in your external target. If you have the small debugger (small QFN package) then your connection shoudl work as far as I can see.&lt;/p&gt;
&lt;p&gt;Note: the kit will always show up as the nRF52840 DK, you can only see it is targeting the external device by seeing it has a different memory size than the nRF52840.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>