<?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>Some UART registers don&amp;#39;t change after changing in .overlay</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64596/some-uart-registers-don-t-change-after-changing-in-overlay</link><description>I ran into a problem that some parameters that I change in the device tree are not applied. 
 For example: The resulting zephyr.dts file contains this setting: 
 in &amp;lt;devicetree_unfixed.h&amp;gt; these settings are also updated. I am interested in Tx Rx pins</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Aug 2020 10:39:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64596/some-uart-registers-don-t-change-after-changing-in-overlay" /><item><title>RE: Some UART registers don't change after changing in .overlay</title><link>https://devzone.nordicsemi.com/thread/263792?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 10:39:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19849bcc-f67c-4185-b6b6-8753f06ac5e1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad to hear that it worked!&lt;/p&gt;
&lt;p&gt;The SPM is the secure part of the multi-image build process:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/nrf/ug_multi_image.html"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/nrf/ug_multi_image.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And the SPM module documentation is available here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/nrf/include/spm.html?highlight=spm"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/nrf/include/spm.html?highlight=spm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;By adding the lines to your cmakelists.txt, you can now configure spm, overlay, and mcuboot specific to your wanted configuration (even when doing multi-image builds). Note that if you want this in other projects, you will need to append those lines to the cmakelists.txt project file there as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some UART registers don't change after changing in .overlay</title><link>https://devzone.nordicsemi.com/thread/263785?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 10:20:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1305837-a7a3-4236-853a-8dcc1259e812</guid><dc:creator>Yury Morgunov</dc:creator><description>&lt;p&gt;Oh no, sorry. Adding spm.conf file helped! I forgot to clear flash on nrf9160.&lt;br /&gt;This is good, it would be great to learn more about how SPM works. I used to think that its functionality is limited to memory protection.&lt;/p&gt;
&lt;p&gt;Is there any simple description of how it works, what and how it uses and how it can be customized?&lt;/p&gt;
&lt;div class="TnITTtw-translate-selection-button" style="left:478.5px;top:28px;"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some UART registers don't change after changing in .overlay</title><link>https://devzone.nordicsemi.com/thread/263784?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 10:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:810eb9ca-260c-450e-8760-7dae3128f4ab</guid><dc:creator>Yury Morgunov</dc:creator><description>&lt;p&gt;Thanks for the answer!&lt;br /&gt;Do I understand correctly that by describing the spm.conf file I am setting up the SPM functionality?&lt;br /&gt;Those. it turns out that SPM configures its peripherals (for example uart 0) and therefore my configuration described in the device tree is not applied?&lt;/p&gt;
&lt;p&gt;How can I then find out what is using and overriding SPM?&lt;br /&gt;I have the same problem with uart1.&lt;/p&gt;
&lt;p&gt;I just tried adding the spm.conf file next to prj.conf. CMakeLists&amp;nbsp;hasn&amp;#39;t changed yet.&lt;br /&gt;Added to it:&lt;br /&gt;CONFIG_SERIAL = n&lt;/p&gt;
&lt;p&gt;But I did not see any changes, uart0 continues to work on pins 29 and 28.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some UART registers don't change after changing in .overlay</title><link>https://devzone.nordicsemi.com/thread/263568?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 10:21:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc935767-efe4-413a-8a5e-3d1953aa6750</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Its the SPM configuration that overrides your wanted configuration.&lt;/p&gt;
&lt;p&gt;Could you try the sequence described here?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/60471/nrf9160-psm-current-consumption-test-problem/245872#245872"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/60471/nrf9160-psm-current-consumption-test-problem/245872#245872&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;then re-generate your project, and it should also override the spm image.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can also create a file &amp;quot;spm.conf&amp;quot; which disables serial (CONFIG_SERIAL=n)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some UART registers don't change after changing in .overlay</title><link>https://devzone.nordicsemi.com/thread/263560?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 09:39:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24d9b7bf-0c32-4732-b40e-1b45d00c6d7e</guid><dc:creator>Yury Morgunov</dc:creator><description>&lt;p&gt;As I found out, we cannot change these registers when uart is on.&lt;br /&gt;It turns out that when the program starts. Before running main.&lt;br /&gt;uart0 is already included and, accordingly, no initialization occurs.&lt;br /&gt;Why is this happening?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>