<?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>NRF52833 issue with BLE and corrupted internal Flash with littleFS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80311/nrf52833-issue-with-ble-and-corrupted-internal-flash-with-littlefs</link><description>Hello, 
 I am struggle with an issue. When I enable the BLE on an nrf52833 and try to write on the internal flash with LittleFS, my flash get corrupted. I try without enable the BLE and LittfleFS worked without issue. Also BLE is worked well. 
 Do you</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Oct 2021 14:21:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80311/nrf52833-issue-with-ble-and-corrupted-internal-flash-with-littlefs" /><item><title>RE: NRF52833 issue with BLE and corrupted internal Flash with littleFS</title><link>https://devzone.nordicsemi.com/thread/332671?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 14:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b64ee85-a260-4b63-bffa-f69f24f6421e</guid><dc:creator>yoann InsightSip</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;sorry for my last reply, now it&amp;#39;s WORKING well thank you very much.&lt;/p&gt;
&lt;p&gt;(I didn&amp;#39; change&amp;nbsp; storage by littlefs_storage)&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Yoann&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52833 issue with BLE and corrupted internal Flash with littleFS</title><link>https://devzone.nordicsemi.com/thread/332641?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 13:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47cd105c-4174-40ab-bb22-d87031efb808</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The reason for this error is that NVS and littlefs both use &amp;quot;storage&amp;quot;.&lt;/p&gt;
&lt;p&gt;One solution for this is to use the Partition Manager to create littlefs_storage.&lt;/p&gt;
&lt;p&gt;This is done by the following:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM_SINGLE_IMAGE=y
CONFIG_PM_PARTITION_SIZE_LITTLEFS=0x6000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FS_LITTLEFS_DECLARE_DEFAULT_CONFIG(littlefs_storage);
static struct fs_mount_t lfs_storage_mnt = {
    .type = FS_LITTLEFS,
    .fs_data = &amp;amp;littlefs_storage,
    .storage_dev = (void *)FLASH_AREA_ID(littlefs_storage),
    .mnt_point = &amp;quot;/lfs&amp;quot;,
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now you will not be able to compile due to an error in &amp;quot;nrf/include/flash_map_pm.h&amp;quot;.&lt;br /&gt;To remove this error, comment away the following lines in &amp;quot;nrf/include/flash_map_pm.h&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; 28 //#if (CONFIG_SETTINGS_FCB || CONFIG_SETTINGS_NVS) &amp;amp;&amp;amp; CONFIG_FILE_SYSTEM_LITTLEFS
 29 //#error &amp;quot;Not supported&amp;quot;
 30 //#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;(See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74859/not-able-to-combine-openthread-mcuboot-and-littlefs"&gt;this&lt;/a&gt; similar case. for the flash_map_pm.h edit)&lt;/p&gt;
&lt;p&gt;Does this fix your issue?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52833 issue with BLE and corrupted internal Flash with littleFS</title><link>https://devzone.nordicsemi.com/thread/332601?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 12:04:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35e969e7-4587-42cd-a4be-412bb7f7a698</guid><dc:creator>yoann InsightSip</dc:creator><description>&lt;p&gt;hello,&lt;/p&gt;
&lt;p&gt;I am using the version 1.6.0.&lt;/p&gt;
&lt;p&gt;I am using this example for littlefs : &lt;a href="https://docs.zephyrproject.org/latest/samples/subsys/fs/littlefs/README.html"&gt;https://docs.zephyrproject.org/latest/samples/subsys/fs/littlefs/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;here is my prj file (not all) : &lt;pre class="ui-code" data-mode="text"&gt;# BLE
CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME=&amp;quot;ISP308x&amp;quot;
CONFIG_BT_DEVICE_APPEARANCE=833
CONFIG_BT_MAX_CONN=1
CONFIG_BT_MAX_PAIRED=1

# Enable bonding
CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=y

#module flash
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I cannot share the ble code.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Yoann&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52833 issue with BLE and corrupted internal Flash with littleFS</title><link>https://devzone.nordicsemi.com/thread/332600?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 11:57:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df8f0b18-a587-44bb-be28-b71f23830813</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Yoann&lt;/p&gt;
&lt;p&gt;Which version of the nRF Connect SDK are you using?&lt;/p&gt;
&lt;p&gt;Are you able to provide code and configuration to replicate this behavior?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>