<?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>SDCard Using FatFS without SDK doesn&amp;#39;t compile</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94720/sdcard-using-fatfs-without-sdk-doesn-t-compile</link><description>Hi, 
 During the development of the firmware over nRF5340, I need to modify the ffconf.h file without changing the SDK. Based on this post I copied the FATFS files into the application root in this way: src/fatfs/&amp;lt;files&amp;gt; and into pro.conf I modified the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Dec 2022 12:27:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94720/sdcard-using-fatfs-without-sdk-doesn-t-compile" /><item><title>RE: SDCard Using FatFS without SDK doesn't compile</title><link>https://devzone.nordicsemi.com/thread/401048?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2022 12:27:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc898a41-8256-4cf0-a748-25fb01be7dd7</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Marco&lt;/p&gt;
&lt;p&gt;Making a fork of the NCS/Zephyr SDK is the most common way of developing projects with the Zephyr RTOS as far as I know, yes.&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><item><title>RE: SDCard Using FatFS without SDK doesn't compile</title><link>https://devzone.nordicsemi.com/thread/400707?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 17:58:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6942533d-c9da-4953-8d1c-a0c1499ee6ca</guid><dc:creator>warcomeb-am</dc:creator><description>&lt;p&gt;Yes, you are right, I am pretty new in the NCS and Nordic world!&lt;/p&gt;
&lt;p&gt;So, you suggesting me to obtain a copy of ncs into the into my repository and change it as I want?&lt;/p&gt;
&lt;p&gt;Best&lt;/p&gt;
&lt;p&gt;Marco&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDCard Using FatFS without SDK doesn't compile</title><link>https://devzone.nordicsemi.com/thread/400613?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 12:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2773b258-edc8-4bce-b113-f662411bf415</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry if I&amp;#39;m misinterpreting your situation Marco, but since you seem pretty new to the nRF Connect SDK (NCS) I would strongly recommend checking out the Nordic Developer Academy to get a good idea of the &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;nRF Connect SDK fundamentals&lt;/a&gt;, and then looking at for example&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/dm_adding_code.html"&gt; this guide in the development model&lt;/a&gt; of the NCS documentation where it explains how to make a fork of the NCS that you can add your own files and configurations to without having to worry about changing the SDK too much.&amp;nbsp;&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><item><title>RE: SDCard Using FatFS without SDK doesn't compile</title><link>https://devzone.nordicsemi.com/thread/400342?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 10:23:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bbe8373-736d-41aa-ac09-3802d0cdb9d7</guid><dc:creator>warcomeb-am</dc:creator><description>&lt;p&gt;Thanks for your time.&lt;/p&gt;
&lt;p&gt;This solutions doesn&amp;#39;t work for me because I am using nRF53 with NCS SDK (2.1.2).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt;&amp;nbsp;do you have found any solution for me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDCard Using FatFS without SDK doesn't compile</title><link>https://devzone.nordicsemi.com/thread/400329?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 09:29:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:779fcb94-55b3-4e31-b409-6a7db3981c65</guid><dc:creator>Casper Kronborg Pedersen</dc:creator><description>&lt;p&gt;Hi Marco,&lt;/p&gt;
&lt;p&gt;Disregard my previous answer, I was thinking about my previous solution.&lt;br /&gt;&lt;br /&gt;The current solution that is working is as you write.&lt;/p&gt;
&lt;p&gt;I have copied this folder from the SDK into my project source file:&lt;/p&gt;
&lt;p&gt;&amp;lt;SDK location&amp;gt;\nRF5_SDK_17.1.0_ddde560\external\fatfs\src&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then, in the &amp;lt;myProject&amp;gt;.emProject file (xml), I am making sure that I am no longer referencing the SDK copy of the fatfs, by removing any references to it in the &amp;quot;c_user_include_directories&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am also using &amp;quot;Dynamic Folders&amp;quot; instead of &amp;quot;Virtual Folders&amp;quot; for my source folder in SEGGER Embedded studio. They are folders that are synchronized with my disk. They are denoted like this in my .emProject file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;lt;folder Name=&amp;quot;Source&amp;quot; exclude=&amp;quot;&amp;quot; filter=&amp;quot;&amp;quot; path=&amp;quot;Source&amp;quot; recurse=&amp;quot;Yes&amp;quot; /&amp;gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I used this forum post to find out how to make them:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://forum.segger.com/index.php/Thread/4750-SOLVED-Feedback-on-SES/"&gt;https://forum.segger.com/index.php/Thread/4750-SOLVED-Feedback-on-SES/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Br. Casper&lt;/p&gt;
&lt;p&gt;Edit: It is specifically the &amp;quot;src&amp;quot; of the fatfs that I have included directly in my project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDCard Using FatFS without SDK doesn't compile</title><link>https://devzone.nordicsemi.com/thread/400311?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 08:43:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8b9548e-4bfc-4b0f-8df3-ac09ecd6d8b8</guid><dc:creator>warcomeb-am</dc:creator><description>&lt;p&gt;Hi Casper,&lt;/p&gt;
&lt;p&gt;reading your post&amp;nbsp;I understood that you were able to get the FATFS into your source folder works. ;(&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Marco&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDCard Using FatFS without SDK doesn't compile</title><link>https://devzone.nordicsemi.com/thread/400306?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 08:26:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc6acd12-01a8-4083-9256-d58174b61504</guid><dc:creator>Casper Kronborg Pedersen</dc:creator><description>&lt;p&gt;Hi Marco,&lt;/p&gt;
&lt;p&gt;In earlier versions of SEGGER embedded studio (I think before 5.30) and with SDK version 15.3.0 I was able to make it work.&lt;/p&gt;
&lt;p&gt;I was not an elegant solution, but I duplicated the ffconf.h file into my source folder and prepended it with the line &amp;quot;#pragma once&amp;quot;&lt;/p&gt;
&lt;p&gt;Then my FatFS would use the configuration file in my source folder over the one in the SDK.&lt;/p&gt;
&lt;p&gt;However, after updating to newer versions of both the SDK and SEGGER this no longer works for me. I would also suggest trying to move the entire FatFS into your source folder. I have not done this myself yet.&lt;/p&gt;
&lt;p&gt;Br. Casper&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDCard Using FatFS without SDK doesn't compile</title><link>https://devzone.nordicsemi.com/thread/400199?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2022 15:10:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:974e300f-df4c-48aa-aad8-4995206bbd6b</guid><dc:creator>warcomeb-am</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/casper-kronborg-pedersen"&gt;Casper Kronborg Pedersen&lt;/a&gt;&amp;nbsp;Sorry. Can you tell me how you solve this issue into your project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDCard Using FatFS without SDK doesn't compile</title><link>https://devzone.nordicsemi.com/thread/400187?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2022 14:38:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e339b35e-22e3-4e91-a356-64b1df030b39</guid><dc:creator>warcomeb-am</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks for your time. The problem is that I need a custom ffconf.h and I don&amp;#39;t want modify the file into sdk (it is a multi-developer project, so the custom configurations must be in the repository and not into the sdk of each developer). For this reason, I follow the trick of the other post that suggests including the FatFS into the src folder of the application.&lt;/p&gt;
&lt;p&gt;I want to disable the include of zephyr module fatfs and use only the code that put inside the directory!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Marco&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDCard Using FatFS without SDK doesn't compile</title><link>https://devzone.nordicsemi.com/thread/400103?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2022 11:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fce8f28-4651-4db1-a1e9-cc1013d39567</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It seems like you&amp;#39;re mixing the two SDKs we have, as the case you&amp;#39;re referring to shows how to add files to projects in the &lt;a href="https://infocenter.nordicsemi.com/topic/struct_sdk/struct/sdk_nrf5_latest.html"&gt;nRF5 SDK&lt;/a&gt;. The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/index.html"&gt;nRF Connect SDK&lt;/a&gt;&amp;nbsp;based on the Zephyr RTOS is another beast entirely, so setting the CONFIG_FILE_SYSTEM and FAT_FILESYSTEM configs to N is expected to result in these errors I believe. To build outside the SDK in NCS/Zephyr I think you need to add a path prefix as described in the West manifest documentation here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/west/manifest.html#example-3-4-import-into-a-subdirectory"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/west/manifest.html#example-3-4-import-into-a-subdirectory&lt;/a&gt;&amp;nbsp;Some experimentation might be necessary.&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>