<?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>Invalid argument error when running &amp;quot;west rtt&amp;quot; with nRF9151</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124331/invalid-argument-error-when-running-west-rtt-with-nrf9151</link><description>I tried to use west rtt with v3.1.0 and I&amp;#39;m getting the following error: 
 ERROR: runners.jlink: [Errno 22] Invalid argument 
 How to reproduce: 
 
 Connect J-Link to Thingy:91 X (switch set to connect SWD to the nRF9151) 
 cd /opt/nordic/ncs/v3.1.0/zephyr</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Oct 2025 15:29:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124331/invalid-argument-error-when-running-west-rtt-with-nrf9151" /><item><title>RE: Invalid argument error when running "west rtt" with nRF9151</title><link>https://devzone.nordicsemi.com/thread/551155?ContentTypeID=1</link><pubDate>Fri, 10 Oct 2025 15:29:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f031ee56-ffde-4b4c-8778-aaa265494aec</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Sorry about the wait. I am not used to this command, and I am struggeling to find others who are either. Though it seems to me this far that west rtt is automatically using another&amp;nbsp;name for the device than what the RTT Viewer does. If you run west -vvv rtt you get this at the end:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;JLinkGDBServer -select usb -port 2331 -if swd -speed 4000 -device nRF9151_xxAA -silent -endian little -singlerun -nogui -rtttelnetport 19021 -nohalt&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Although only nRF9151_xxCA is what is listed among the&amp;nbsp;registered target devices in the latest JLink version.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See if it works for you if you change the command to use&amp;nbsp;&lt;span&gt;nRF9151_xxCA.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invalid argument error when running "west rtt" with nRF9151</title><link>https://devzone.nordicsemi.com/thread/549941?ContentTypeID=1</link><pubDate>Sat, 27 Sep 2025 23:31:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f4202e0-b7b8-4f50-82a8-ff1c68130c7f</guid><dc:creator>cgnd_chris</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/elfving"&gt;Elfving&lt;/a&gt;&amp;nbsp;I tried this same process on a nRF54L15-DK board and I&amp;#39;m seeing the same behavior.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Connect USB to&amp;nbsp;nRF54L15-DK&lt;/li&gt;
&lt;li&gt;&lt;code&gt;cd /opt/nordic/ncs/v3.1.0/zephyr/samples/subsys/shell/shell_module&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;west build -p -b nrf54l15dk/nrf54l15/cpuapp/ns --sysbuild -- -DCONF_FILE=&amp;quot;prj_minimal_rtt.conf&amp;quot;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;west rtt&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I get the following error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;❯ west rtt
-- west rtt: rebuilding
[0/5] Performing build step for &amp;#39;shell_module&amp;#39;
[0/16] Performing build step for &amp;#39;tfm&amp;#39;
ninja: no work to do.
[2/3] Performing install step for &amp;#39;tfm&amp;#39;
-- Install configuration: &amp;quot;MinSizeRel&amp;quot;
----- Installing platform NS -----
[3/3] Completed &amp;#39;tfm&amp;#39;
[4/5] cd /opt/nordic/ncs/v3.1.0/zephyr/samples/subsys/shell/shell_module/build/_sysbuild &amp;amp;&amp;amp; /opt/homebrew/bin/cmake -E true
-- west rtt: using runner jlink
-- runners.jlink: reset after flashing requested
-- runners.jlink: JLink version: 8.72a
-- runners.jlink: J-Link GDB server running on port 2331; no thread info available
-- runners.jlink: J-Link RTT server running on port 19021
SEGGER J-Link GDB Server V8.72a Command Line Version

JLinkARM.dll V8.72a (DLL compiled Sep 25 2025 17:23:39)

-----GDB Server start settings-----
GDBInit file:                  none
GDB Server Listening port:     2331
SWO raw output listening port: 2332
Terminal I/O port:             2333
Accept remote connection:      yes
Generate logfile:              off
Verify download:               off
Init regs on start:            off
Silent mode:                   on
Single run mode:               on
Target connection timeout:     0 ms
------J-Link related settings------
J-Link Host interface:         USB
J-Link script:                 none
J-Link settings file:          none
------Target related settings------
Target device:                 nRF54L15_M33
Target device parameters:      none
Target interface:              SWD
Target interface speed:        4000kHz
Target endian:                 little

ERROR: runners.jlink: [Errno 22] Invalid argument&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, if I open the JLinkRTTViewer.app from Segger, the RTT functionality works OK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invalid argument error when running "west rtt" with nRF9151</title><link>https://devzone.nordicsemi.com/thread/549834?ContentTypeID=1</link><pubDate>Thu, 25 Sep 2025 16:53:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7cb2720-4e9c-4eef-ac2c-4961b62786a5</guid><dc:creator>cgnd_chris</dc:creator><description>&lt;p&gt;I&amp;#39;ve only tried this on the Thingy:91 X so far. I&amp;#39;ll try to test this out on another Nordic dev kit and reply back.&lt;/p&gt;
&lt;p&gt;What error are you seeing? I&amp;#39;m on macOS with Apple Silicon, what OS are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invalid argument error when running "west rtt" with nRF9151</title><link>https://devzone.nordicsemi.com/thread/549774?ContentTypeID=1</link><pubDate>Thu, 25 Sep 2025 08:31:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faf3e1ae-af31-4e2e-9108-fabe838ce180</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi again Chris, and sorry about the wait.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also seeing an error doing this, but not exactly what you are seeing. Given that you have more boards on hand, could you see if you&amp;#39;re only getting this issue on the Thingy?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invalid argument error when running "west rtt" with nRF9151</title><link>https://devzone.nordicsemi.com/thread/548947?ContentTypeID=1</link><pubDate>Tue, 16 Sep 2025 21:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1458daaa-1372-4043-beb0-7c31d0c1866d</guid><dc:creator>cgnd_chris</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/elfving"&gt;Elfving&lt;/a&gt;&amp;nbsp;I saw this on a custom app I&amp;#39;m working on using NCS 3.0.1. I tried reproducing it on the latest 3.1.0 with the sample app to check if it was something specific to my app, but I saw the same behavior.&lt;/p&gt;
&lt;p&gt;Are you able to reproduce it on your end using the steps I posted above?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invalid argument error when running "west rtt" with nRF9151</title><link>https://devzone.nordicsemi.com/thread/548726?ContentTypeID=1</link><pubDate>Mon, 15 Sep 2025 10:59:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deb2d50a-5fa2-4aea-905d-c1a7e948c1b2</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Chris,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you seeing this with other samples as well, or just this one for this particular board?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>