<?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>SLM fault on startup with UART2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120971/slm-fault-on-startup-with-uart2</link><description>Hello, 
 I&amp;#39;m working on a project that uses the Serial LTE Modem (SLM) application on a custom board. The main processor sends data to the nRF9160 over UART. The project is build using NCS v2.9.1 with TF-M, and UART2 is configured as the SLM UART. 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 May 2025 07:53:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120971/slm-fault-on-startup-with-uart2" /><item><title>RE: SLM fault on startup with UART2</title><link>https://devzone.nordicsemi.com/thread/534218?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 07:53:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c90acc19-6420-4de9-930b-a93269526caf</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Oooohhh - I have used two week on what I think is the same problem or maybe a similar problem with using uart2.&lt;/p&gt;
&lt;p&gt;As soon as I&amp;nbsp;enable uart2 in my devicetree for the project, the application crashes on startup.&lt;/p&gt;
&lt;p&gt;BUT I cannot get the above fix to work. Have added a mcuboot.overlay, with the &amp;amp;uart2 disabled. But this is causing a build error:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;-- Found devicetree overlay: D:/Workspaces/azure_iot_hub_7/sysbuild/mcuboot.overlay&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;devicetree error: D:/ncs/v3.0.1/zephyr/misc/empty_file.c:1 (column 1): parse error: expected &amp;#39;;&amp;#39;, not &amp;#39;&amp;lt;EOF&amp;gt;&amp;#39;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CMake Error at D:/ncs/v3.0.1/zephyr/cmake/modules/dts.cmake:305 (execute_process):&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; execute_process failed command indexes:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;1: &amp;quot;Child return code: 1&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;span&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;My mcuboot.overlay file looks lige this:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;amp;uart2 {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;nbsp; &amp;nbsp;status = &amp;quot;disabled&amp;quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLM fault on startup with UART2</title><link>https://devzone.nordicsemi.com/thread/533033?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 14:01:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e3e4f15-961f-49c6-9997-b2ab8791cb92</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Mike,&lt;/p&gt;
&lt;p&gt;Thank you for reporting this!&amp;nbsp;These kinds of issues can be tricky to track down. Hope you didn&amp;#39;t have to spend too much time on it. Assuming you&amp;#39;re not using the UARTE2 instance in your bootloader, a solution that doesn&amp;#39;t require patching the SDK is to disable the uart2 node in&amp;nbsp;the devicetree for MCUboot. I have reported this as a bug internally.&lt;/p&gt;
&lt;p&gt;&amp;lt;project source directory&amp;gt;/sysbuild/mcuboot.overlay&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
&amp;amp;uart2 {
    status = &amp;quot;disabled&amp;quot;;
}&lt;/pre&gt;&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>