<?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>Difference between the libraries of littlefs and nvs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58932/difference-between-the-libraries-of-littlefs-and-nvs</link><description>Hi, 
 I want to use flash area of nrf9160. To do it, I have created simple example using predefined samples on zepyhr project. My goal is to write a data to flash and read it. To write data, I&amp;#39;m using the following scripts which I found that https://devzone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Mar 2020 12:18:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58932/difference-between-the-libraries-of-littlefs-and-nvs" /><item><title>RE: Difference between the libraries of littlefs and nvs</title><link>https://devzone.nordicsemi.com/thread/240625?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 12:18:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f563dde4-39c1-4502-bda1-633c2001bc46</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Could you tell me if you are using nRF5 SDK or NCS on the nRF52 device?&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: Difference between the libraries of littlefs and nvs</title><link>https://devzone.nordicsemi.com/thread/239679?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2020 10:15:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d6f39c5-e76a-4cb8-be50-925450d345ab</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Okay, thanks for the detailed explanation.&lt;/p&gt;
&lt;p&gt;Regarding the DFU, I am not sure how to go about it as this is not my area of expertise, but I will try to present what I currently know. I will read more about this and update the thread when I get a better overview.&lt;/p&gt;
&lt;p&gt;→ If you want to perform a DFU from the nRF9160 to an nRF52 through a serial link, the approach depends on the SDK you are using with the nRF52.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you are using the &lt;a href="https://www.nordicsemi.com/Software-and-tools/Software/nRF5-SDK"&gt;nRF5 SDK&lt;/a&gt;&amp;nbsp;on the nRF52, you need to perform the DFU according to the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_dfu_transport_serial.html?cp=7_1_3_5_2_3"&gt;Serial DFU protocol&lt;/a&gt;. Check out the DFU Bootloader blog and section &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader#h108sjziaxo3m81rkgr1has5r1d72qtu"&gt;6. DFU Master code&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;If you are using NCS/Zephyr on the nRF52, you need to do the following:
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;On the nR52, you need to implement MCUBoot and the application with&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/mgmt/smp_uart.c"&gt;SMP&lt;/a&gt;&lt;span&gt;&amp;nbsp;support.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;On the nRF9160, you need to implement the&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/mcumgr"&gt;mcumgr library&lt;/a&gt;&amp;nbsp;and transfer the image to the nRF52 over&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/mcumgr/tree/master/smp"&gt;SMP&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The SMP instance on the nRF52 will then receive the firmware and save it in flash. The MCUBoot will then execute it&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;(Take a look at the&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/device_mgmt/index.html#device-mgmt"&gt;Device Management&lt;/a&gt;&amp;nbsp;section in the Zephyr Documentation as well.)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;→ Regarding the storage, I&amp;#39;ll come back to you about this.&lt;/p&gt;
&lt;p&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><item><title>RE: Difference between the libraries of littlefs and nvs</title><link>https://devzone.nordicsemi.com/thread/239397?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 16:22:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52dea29c-9aa5-4599-81aa-f7d725703e65</guid><dc:creator>CNONE</dc:creator><description>&lt;p&gt;Of course, I can give more details about work. My main work is the following:&lt;/p&gt;
&lt;p&gt;1) Download the firmware for nrf52 from Internet. The format of this firmware will be ZIP. While this firmware belongs to nrf52, it will be stored on nrf91.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2) After storing this ZIP, the second step is sending the firmware&amp;nbsp;to nrf52 through UART. I have achieved it for basic data like char array. In addition, I created post about this issue before. You may want to read it also:&amp;nbsp;&lt;a title="https://devzone.nordicsemi.com/f/nordic-q-a/58636/sending-data-larger-than-ram-through-uart" href="https://devzone.nordicsemi.com/f/nordic-q-a/58636/sending-data-larger-than-ram-through-uart"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/58636/sending-data-larger-than-ram-through-uart&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;3) After taking firmware through UART, I want to update it using DFU in nRF52.&lt;/p&gt;
&lt;p&gt;Now, I&amp;#39;m at the first step which is storing data on nrf91. Do you have suggestion for my work and issues?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between the libraries of littlefs and nvs</title><link>https://devzone.nordicsemi.com/thread/239309?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 11:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df5ca381-9c18-45e1-b06b-38554b84ba5e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;It would be nice with some more clarification. What are you going to store in the ZIP file and what are you going to do with that data? The reason I am asking is that this information is needed in order to give you the best recommendations on how to go about this.&lt;/p&gt;
&lt;p&gt;Feel free to make the ticket private if you are going to share any confidential information.&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: Difference between the libraries of littlefs and nvs</title><link>https://devzone.nordicsemi.com/thread/239253?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 07:24:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:050292ca-8e6f-49fb-b20c-39cba72d9ad8</guid><dc:creator>CNONE</dc:creator><description>&lt;p&gt;Thanks for your answer. Actually, I&amp;#39;m planning to access data from the chip. Not just for storage.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between the libraries of littlefs and nvs</title><link>https://devzone.nordicsemi.com/thread/239229?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 22:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1459c167-bf31-4fc7-80b2-49cf40d8d3fa</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I can see in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/58941/using-pynrfjprog-to-write-data-to-flash"&gt;this ticket&lt;/a&gt; that you are planning to read and write to flash by using pynrjfprog (read and write flash from the computer). Have you discarded the methods for reading/writing flash directly from the chip, like littlefs and nvs? It would be nice to know what your end goal is, then I could advise you on how to go about this. Are you planning to access the data from the chip, or are you just using it for storage?&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>