<?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 via SWD</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124807/programming-via-swd</link><description>Hey all! 
 I&amp;#39;ve just received my first board with a Nordic chip. More specifically it features the Ezurio BL54L15&amp;#181; module. 
 I am currently &amp;quot;limited&amp;quot; to programming via SWD using a Rasperry Pico as debugprobe. Connecting via SWD works: 
 
 I can connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Oct 2025 15:46:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124807/programming-via-swd" /><item><title>RE: Programming via SWD</title><link>https://devzone.nordicsemi.com/thread/551311?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2025 15:46:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70cc74ee-ac3f-4cea-bdef-99a28cc5cbce</guid><dc:creator>PjGlasso</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;So I&amp;#39;m using a Xiao nRF54L15 and OpenOcd here is a log after I build and flash, Maybe it helps ?&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span style="color:#339966;"&gt;[10/10] Generating ../merged.hex&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;PS &lt;span style="color:#800080;"&gt;D:\Nordic\myapps\workspace\watchface&lt;/span&gt;&amp;gt;&lt;span style="color:#ff0000;"&gt; west flash -d build_xiao -r openocd&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;-- west flash: rebuilding&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;[0/5] Performing build step for &amp;#39;watchface&amp;#39;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;ninja: no work to do.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;[4/5] cmd.exe /C &amp;quot;cd /D D:\Nordic\myapps\workspace\watchface\build_xiao\_sysbuild &amp;amp;&amp;amp; C:\ncs\toolchains\c1a76fddb2\opt\bin\cmake.exe -E true&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;-- west flash: using runner openocd&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;-- runners.openocd: &lt;span style="color:#000000;"&gt;Flashing file:&lt;/span&gt; &lt;span style="color:#993366;"&gt;D:/Nordic/myapps/workspace/watchface&lt;/span&gt;/build_xiao/&lt;span style="color:#000000;"&gt;merged.hex&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Open On-Chip Debugger 0.12.0 (2023-01-14-23:37)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Licensed under GNU GPL v2&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;For bug reports, read&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt; &lt;a href="http://openocd.org/doc/doxygen/bugs.html"&gt;openocd.org/.../bugs.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;nrf54l-load&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Info : Using CMSIS-DAPv2 interface with VID:PID=0x2886:0x0066, serial=E4E44CBA&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Info : CMSIS-DAP: SWD supported&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Info : CMSIS-DAP: FW Version = 2.0.0&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Info : CMSIS-DAP: Serial# = E4E44CBA&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Info : CMSIS-DAP: Interface Initialised (SWD)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Info : CMSIS-DAP: Interface ready&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Info : clock speed 1000 kHz&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Info : SWD DPIDR 0x6ba02477&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Info : [nrf54l.cpu] Cortex-M33 r1p0 processor detected&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Info : [nrf54l.cpu] target has 8 breakpoints, 4 watchpoints&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Info : starting gdb server for nrf54l.cpu on 3333&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Info : Listening on port 3333 for gdb connections&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;Info : gdb port disabled&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt; TargetName Type Endian TapName State&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;-- ------------------ ---------- ------ ------------------ ------------&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt; 0* nrf54l.cpu cortex_m little nrf54l.cpu running&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt; 1 nrf54l.aux mem_ap little nrf54l.cpu running&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span style="color:#339966;"&gt;[nrf54l.cpu] halted due to debug-request, current mode: Thread&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;xPSR: 0xf9000000 pc: 0x00003230 msp: 0x2000d318&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;537732 bytes written at address 0x00000000&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#339966;"&gt;downloaded 537732 bytes in 10.581510s (49.627 KiB/s)&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span style="color:#339966;"&gt;shutdown command invoked&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;/p&gt;
&lt;p&gt;HTH&lt;/p&gt;
&lt;p&gt;GL :-) PJ :v:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://vimeo.com/1126714005"&gt;https://vimeo.com/1126714005&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming via SWD</title><link>https://devzone.nordicsemi.com/thread/551204?ContentTypeID=1</link><pubDate>Sun, 12 Oct 2025 21:26:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:544abe91-d6cb-476f-96fe-00020962891a</guid><dc:creator>jLYV3r</dc:creator><description>&lt;p&gt;Seems like it&amp;#39;s a problem with the OpenOCD executable itself. I figured that using pyOCD on the other hand works like a charm &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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming via SWD</title><link>https://devzone.nordicsemi.com/thread/550803?ContentTypeID=1</link><pubDate>Tue, 07 Oct 2025 12:17:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9b115d4-abb3-4c8e-91e1-3fcf476413c2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Unfortunately we don&amp;#39;t work with OpenOCD, so this is somewhat out-of-scope for what we can assist with, we focus on using J-Link to do SWD programming.&amp;nbsp;This should be possible though, could it be that the APP protection is enabled and that is what&amp;#39;s causing these programming errors. I can&amp;#39;t say I&amp;#39;m very experienced looking at OpenOCD error logs, so this is mostly guesswork from my side.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming via SWD</title><link>https://devzone.nordicsemi.com/thread/550729?ContentTypeID=1</link><pubDate>Mon, 06 Oct 2025 14:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00b3c093-f0d0-466e-a461-e3d14503f85f</guid><dc:creator>jLYV3r</dc:creator><description>&lt;p&gt;When running interactively the error gives a little more detail:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Traceback (most recent call last):
  File &amp;quot;embedded:startup.tcl&amp;quot;, line 1934, in program
    program_error {** Programming Failed **} 0
  File &amp;quot;embedded:startup.tcl&amp;quot;, line 1869, in program_error
    error {** Programming Failed **}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>