<?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>Using NRF9160 with Flash Circular Buffer (FCB)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63535/using-nrf9160-with-flash-circular-buffer-fcb</link><description>Hey, everyone. I am currently working with NRF9160, NCS V1.3.0, developing code for an application that requires periodically storing important information in flash, and send the accumulated information whenever possible. I looked through the Zephyr libraries</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Jan 2025 13:20:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63535/using-nrf9160-with-flash-circular-buffer-fcb" /><item><title>RE: Using NRF9160 with Flash Circular Buffer (FCB)</title><link>https://devzone.nordicsemi.com/thread/518641?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2025 13:20:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa175cd6-e798-4931-8eaf-ed0cb907549c</guid><dc:creator>bringert</dc:creator><description>&lt;p&gt;Found another possible example: &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/35facd192a4afb59ad952ea253e7307829c52c59/lib/nrf_modem_lib/trace_backends/flash/flash.c"&gt;nrf_modem_lib/trace_backends/flash/flash.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using NRF9160 with Flash Circular Buffer (FCB)</title><link>https://devzone.nordicsemi.com/thread/518604?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2025 11:17:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32e9176f-eabd-411d-9bc2-db560911ce01</guid><dc:creator>bringert</dc:creator><description>&lt;p&gt;Maybe &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/9ba1f2e1704a837948a6d104d7c9536b1c1d803f/subsys/settings/src/settings_fcb.c"&gt;settings_fbc.c&lt;/a&gt; is a better example of how to use FCB? Just started looking at it myself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using NRF9160 with Flash Circular Buffer (FCB)</title><link>https://devzone.nordicsemi.com/thread/517403?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 09:16:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:136bfbb8-6335-49a8-ab30-5d017514907e</guid><dc:creator>icedfluid</dc:creator><description>&lt;p&gt;Same problem here.&amp;nbsp;FIVE years later still no&amp;nbsp;example how to use FCB. &lt;br /&gt;Digging into &amp;quot;tests code&amp;quot;&amp;nbsp;to understand how it works&amp;nbsp;does not help to be effective under Zephyr coding.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using NRF9160 with Flash Circular Buffer (FCB)</title><link>https://devzone.nordicsemi.com/thread/475484?ContentTypeID=1</link><pubDate>Sat, 23 Mar 2024 14:01:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd02ee47-027e-4df3-a78e-6dd462747cbb</guid><dc:creator>grzegorz</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/simoniversen"&gt;Simon&lt;/a&gt; A lot of time has passed but there is still no example how to use FCB. There is no sample for FCB. There are tests but they are not very clear. There is also a ridiculus statement in documentation:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The following data structure describes the FCB itself. First part should be filled in by the user before calling &lt;a class="reference internal" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.3/zephyr/services/storage/fcb/fcb.html#group__fcb__api_1ga318d35b6f023bb4079aaf76c01a59b96"&gt;&lt;span class="std std-ref"&gt;fcb_init&lt;/span&gt;&lt;/a&gt;. The second part is used by FCB for its internal bookkeeping.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;But which part is first and which is second? It isn&amp;#39;t described anywhere. How should I set f_sector_cnt, f_scratch_cnt, f_sectors? Fields in struct fcb have shorts description, but they also don&amp;#39;t provide information about optimal settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using NRF9160 with Flash Circular Buffer (FCB)</title><link>https://devzone.nordicsemi.com/thread/422816?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2023 15:05:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7de03767-8fc7-4655-b1a3-beaf079f6062</guid><dc:creator>NickH</dc:creator><description>&lt;p&gt;Hi - the link no longer works and there is no longer any \fcb\ directory under \subsys\fs - any other pointers?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using NRF9160 with Flash Circular Buffer (FCB)</title><link>https://devzone.nordicsemi.com/thread/261652?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 20:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:453178ed-1450-4596-9c7d-134dd690f266</guid><dc:creator>ubieda</dc:creator><description>&lt;p&gt;Hey, Simon.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I already checked the FCB sample code, thanks for pointing it out. I have not dug into its deep-detailed implementations, but&amp;nbsp;I see they disable MPU&amp;nbsp;and set some other configurations that do&amp;nbsp;not seem ideal for a non-secure&amp;nbsp;application in the NRF9160. We&amp;#39;ve used NVS before and since it has worked&amp;nbsp;well for us, we will move forward with it.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Luis.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using NRF9160 with Flash Circular Buffer (FCB)</title><link>https://devzone.nordicsemi.com/thread/259282?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 22:30:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21f09a73-98b0-49ec-bc7a-9d6e84ed9e37</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Take a look at&amp;nbsp;ncs\v1.3.0\zephyr\tests\subsys\fs\fcb\src\main.c, which may give you some guidance on how to use the Flash Circular Buffer library.&lt;/p&gt;
&lt;p&gt;It may also be worth taking a look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/zephyr/reference/storage/nvs/nvs.html"&gt;NVS library&lt;/a&gt;&amp;nbsp;and the sample &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/zephyr/samples/subsys/nvs/README.html"&gt;ncs\v1.3.0\zephyr\samples\subsys\nvs\src\main.c&lt;/a&gt;&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>