<?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>Flashing nrf53 using ST-LINK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94279/flashing-nrf53-using-st-link</link><description>Hello, I am looking to cheaply flash a nrf5340. This will most likely be a one-time thing, so I don&amp;#39;t want to invest in a J-Link device. 
 I have an ST-LINK clone though and I am wondering if that could program/flash an nrf5340 module? If not, can the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Nov 2022 09:47:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94279/flashing-nrf53-using-st-link" /><item><title>RE: Flashing nrf53 using ST-LINK</title><link>https://devzone.nordicsemi.com/thread/398045?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 09:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edb100e0-79e3-4b89-b854-26ac2da3a12f</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;so the newest nRF52-DKs have a different On Board Debugger than the older ones. These can easily be spotted by the size of the debugger, if it is old then it is a large TQFP package (like in the picture above), if it is a small aQFN then it is a new one. The new kits can actually program all the ARMv8-M devices (nRF53/nRF91). Remember that operating voltage of the external kit still needs to match the voltage on the DK...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing nrf53 using ST-LINK</title><link>https://devzone.nordicsemi.com/thread/397964?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 18:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67800ab4-69b7-4933-8ff0-acf8b89cc280</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Ramon,&lt;/p&gt;
&lt;p&gt;If it were a nRF52-series device, you could use the nRF52 DK to program it. Almost all of our development kits have an on-board (OB) debugger that is wired up to either a &amp;quot;&lt;code&gt;debug out&lt;/code&gt;&amp;quot; port or to &lt;code&gt;Serial Wire Debug (SWD)&lt;/code&gt; pins, and these are meant for exactly this purpose.&lt;/p&gt;
&lt;p&gt;Unfortunately the OB debugger on the 52-series DKs can&amp;#39;t program to the newer ARMv8-M architecture of the nRF5340&amp;#39;s Cortex M33 (although it would have worked the other way around, I just tested this).&lt;/p&gt;
&lt;p&gt;Assuming your project is non-commercial, you can buy a &lt;a href="https://www.adafruit.com/product/3571"&gt;SEGGER J-Link EDU Mini&lt;/a&gt;, but these seem to be out of stock everywhere. It &lt;a href="https://www.segger.com/products/debug-probes/j-link/models/model-overview/#supported-cores"&gt;supports the Cortex M33&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I think the cheapest alternative for you would be to get an NRF5340DK and use &lt;code&gt;SWD&lt;/code&gt;/&lt;code&gt;debug out&lt;/code&gt; to program. To connect through SWD to your custom board, you can do as follows:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3022.pastedimage1669660817367v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Or just connect &lt;code&gt;debug out&lt;/code&gt; to &lt;code&gt;debug in&lt;/code&gt;, if you have that on your board. See this page for details: &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fnwp_034%2FWP%2Fnwp_034%2Fnwp_034_gpio_swd.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fnwp_034%2FWP%2Fnwp_034%2Fnwp_034_gpio_swd.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know anything about ST-LINK. Some quick browsing returned this: &lt;a href="https://www.segger.com/products/debug-probes/j-link/models/other-j-links/st-link-on-board/"&gt;Converting ST-LINK On-Board Into a J-Link&lt;/a&gt; - though I believe you remain restricted to flashing ST devices.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;
&lt;p&gt;&lt;em&gt;edited this post to note that nRF52 OB debuggers can&amp;#39;t flash ARMv8-M devices.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>