<?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>Trouble reading from static flash partition on nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98209/trouble-reading-from-static-flash-partition-on-nrf9160</link><description>Hi, I am trying to create a static partition for configuration data on the nRF9160. I run MCUBoot + TF-M + my zephyr application on top of this. 
 
 First I attempted to use the flash_map library to read, but when the application calls the read function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Mar 2023 12:25:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98209/trouble-reading-from-static-flash-partition-on-nrf9160" /><item><title>RE: Trouble reading from static flash partition on nRF9160</title><link>https://devzone.nordicsemi.com/thread/418102?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2023 12:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f9c03a7-5bd1-483e-8e94-7840be65b146</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 agree with you. I will report this as a improvement internally.&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: Trouble reading from static flash partition on nRF9160</title><link>https://devzone.nordicsemi.com/thread/418046?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2023 09:38:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c81a5fc4-e42b-4e4a-b2a8-af2370a80e8f</guid><dc:creator>Oskar</dc:creator><description>&lt;p&gt;If I may, I would suggest to restructure this: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/app_dev/tfm/index.html#ug-tfm"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/app_dev/tfm/index.html#ug-tfm&lt;/a&gt; page a bit, the reference to the nonsecure_partition is under &amp;quot;migration from SPM&amp;quot; making it quite challenging to figure out why this would cause the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble reading from static flash partition on nRF9160</title><link>https://devzone.nordicsemi.com/thread/418034?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2023 08:38:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:355c565a-b88c-42f5-b44a-34ff35fc2887</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Glad to hear that you figured this one out, and appreciate that you updated your thread with the answer!&lt;/p&gt;
&lt;p&gt;Hope you have a wonderful day!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&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: Trouble reading from static flash partition on nRF9160</title><link>https://devzone.nordicsemi.com/thread/418009?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2023 07:17:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc377db5-cca8-441f-8d9b-134948081d39</guid><dc:creator>Oskar</dc:creator><description>&lt;p&gt;I figured this one out, I did not wrap the Non-Secure partitions in `nonsecure_storage` in pm_static.yml.&lt;/p&gt;
&lt;p&gt;This is the changed lines, for reference:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# This was configuration_storage before.
nonsecure_storage:
  address: 0xfc000
  span:
    - nvs_storage
    - static_configuration
  region: flash_primary
  size: 0x3000

nvs_storage:
  address: 0xfc000
  region: flash_primary
  size: 0x3000

static_configuration:
  address: 0xff000
  region: flash_primary
  size: 0x1000&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>