<?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>lfs.h can&amp;#39;t be found asset tracker project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65137/lfs-h-can-t-be-found-asset-tracker-project</link><description>I&amp;#39;m using the asset tracker project and I want to add in the ability to store information on the board. However when you include the littlefs file system you get a build error from the littlefs.h file 
 
 
 So the compiler can find the include for littlefs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Aug 2020 06:29:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65137/lfs-h-can-t-be-found-asset-tracker-project" /><item><title>RE: lfs.h can't be found asset tracker project</title><link>https://devzone.nordicsemi.com/thread/266357?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 06:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87dcd5bc-162f-4167-ad2d-f1f2031b040c</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Try to do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Add these lines to&amp;nbsp;&lt;em&gt;ncs\v1.3.0\nrf\applications\asset_tracker\src\main.c&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;fs/fs.h&amp;gt;
#include &amp;lt;fs/littlefs.h&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Add these configurations to&amp;nbsp;&lt;em&gt;ncs\v1.3.0\nrf\applications\asset_tracker\prj.conf&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y&lt;/pre&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;There might be more you have to do in order to use littlefs. If you face any more problems, take a look at the sample&amp;nbsp;&lt;em&gt;ncs\v1.3.0\zephyr\samples\subsys\fs\littlefs&lt;/em&gt;, which can be used as a guidance on how to implement the file system.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>