<?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>Not able to combine OpenThread, MCUBoot and LittleFS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74859/not-able-to-combine-openthread-mcuboot-and-littlefs</link><description>Hi, 
 I&amp;#39;m trying to combine OpenThread, MCUBoot and LittleFS in a sample in nRF Connect SDK v1.5.1, but I&amp;#39;m getting the following error: 
 
 I have checked the file, and it seems to suggest that combining NVS (used by OpenThread/settings module for storing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Apr 2022 09:04:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74859/not-able-to-combine-openthread-mcuboot-and-littlefs" /><item><title>RE: Not able to combine OpenThread, MCUBoot and LittleFS</title><link>https://devzone.nordicsemi.com/thread/364643?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 09:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71879a76-913b-4c13-995a-518b9fba57fc</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi J&amp;oslash;rgen, thanks for the prompt reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So it is available in the latest version of NCS 1.9.1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to combine OpenThread, MCUBoot and LittleFS</title><link>https://devzone.nordicsemi.com/thread/364606?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 07:30:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f10fdb6d-a197-45f7-9d9d-758d7597d5ef</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This should be fixed by the following pull requests:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/pull/645"&gt;https://github.com/nrfconnect/sdk-zephyr/pull/645&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/6484"&gt;https://github.com/nrfconnect/sdk-nrf/pull/6484&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to combine OpenThread, MCUBoot and LittleFS</title><link>https://devzone.nordicsemi.com/thread/364597?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 07:00:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a848deb1-f7d3-4e2c-b4b2-544f801151d6</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;are there any update for this problem ?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to combine OpenThread, MCUBoot and LittleFS</title><link>https://devzone.nordicsemi.com/thread/343987?ContentTypeID=1</link><pubDate>Thu, 16 Dec 2021 15:59:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf760d5f-13df-4a37-bc35-2975cc250632</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi, we have internal tickets to look into fixing this in the official nRF Connect SDK releases.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to combine OpenThread, MCUBoot and LittleFS</title><link>https://devzone.nordicsemi.com/thread/343040?ContentTypeID=1</link><pubDate>Sun, 12 Dec 2021 20:52:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91afe266-5a14-490e-9440-cc9e2d69a0d7</guid><dc:creator>Axel Schlueter</dc:creator><description>&lt;p&gt;I&amp;#39;d like to +1 &lt;a href="https://devzone.nordicsemi.com/members/farhangj"&gt;Farhang&lt;/a&gt;&amp;#39;s concern, having to patch ncs&amp;nbsp;isn&amp;#39;t a great&amp;nbsp;fix. Any chances of getting the necessary changes into the official ncs tree?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to combine OpenThread, MCUBoot and LittleFS</title><link>https://devzone.nordicsemi.com/thread/342434?ContentTypeID=1</link><pubDate>Tue, 07 Dec 2021 19:04:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bff2c8fb-bb5a-410d-9049-7531b22a8ebf</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/joh2"&gt;Jørgen Holmefjord&lt;/a&gt; The patch you provided works, but it requires commits to both Zephyr and NRF repos.&lt;/p&gt;
&lt;p&gt;Is this a good fix? if so, is Nordic going to apply it to the repos?&lt;/p&gt;
&lt;p&gt;Alternatively could all the settings (including OpenThread, BT,etc.) be switched over to using FS/LFS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to combine OpenThread, MCUBoot and LittleFS</title><link>https://devzone.nordicsemi.com/thread/308671?ContentTypeID=1</link><pubDate>Fri, 07 May 2021 08:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff9ba155-2453-400d-842d-55433f0a83a9</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The error generated in&amp;nbsp;flash_map_pm.h is only generated to guard the definition of the &amp;#39;storage&amp;#39; symbol defined above, to make sure that the symbol is set and used correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you redefine the littlefs_storage variable on line 23 to lfs_storage, like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#if (CONFIG_SETTINGS_FCB || CONFIG_SETTINGS_NVS)
#define storage settings_storage
#elif CONFIG_FILE_SYSTEM_LITTLEFS
#define lfs_storage littlefs_storage
#elif CONFIG_NVS
#define storage nvs_storage
#endif&lt;/pre&gt;,&lt;/p&gt;
&lt;p&gt;Then you can remove the error check:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;//#if (CONFIG_SETTINGS_FCB || CONFIG_SETTINGS_NVS) &amp;amp;&amp;amp; CONFIG_FILE_SYSTEM_LITTLEFS
//#error &amp;quot;Not supported&amp;quot;
//#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can then replace the &amp;#39;storage&amp;#39; symbol in the LittleFS application with littlefs_storage symbol:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static struct fs_mount_t lfs_storage_mnt = {
	.type = FS_LITTLEFS,
	.fs_data = &amp;amp;littlefs_storage,
	.storage_dev = (void *)FLASH_AREA_ID(storage),
	.mnt_point = &amp;quot;/lfs&amp;quot;,
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have attached patches that enables the modules in the sample and resolves the error, one for Zephyr and one for the nRF repository. Both needs to be applied:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/littlefs_5F00_zephyr.patch"&gt;devzone.nordicsemi.com/.../littlefs_5F00_zephyr.patch&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/littlefs_5F00_nrf.patch"&gt;devzone.nordicsemi.com/.../littlefs_5F00_nrf.patch&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>