<?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>Flash read/write operation over NRF52810</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68910/flash-read-write-operation-over-nrf52810</link><description>Hi, 
 I am using NRF52810 , In my project I need to store Float value and uint32_t value in EEPROM / Flash for permanent storage (Non-volatile storage). 
 With SDK17 i am not getting any sample code to perform flash operation over NRF52810 . 
 So please</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Dec 2020 12:50:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68910/flash-read-write-operation-over-nrf52810" /><item><title>RE: Flash read/write operation over NRF52810</title><link>https://devzone.nordicsemi.com/thread/282882?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 12:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c39d9ad-c922-4a67-97e6-9c02c31aa108</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I think the examples flash_fstorage example show how to do this (depending on whether softdevice is enabled or not):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    NRF_LOG_INFO(&amp;quot;fstorage example started.&amp;quot;);

    nrf_fstorage_api_t * p_fs_api;

#ifdef SOFTDEVICE_PRESENT
    NRF_LOG_INFO(&amp;quot;SoftDevice is present.&amp;quot;);
    NRF_LOG_INFO(&amp;quot;Initializing nrf_fstorage_sd implementation...&amp;quot;);
    /* Initialize an fstorage instance using the nrf_fstorage_sd backend.
     * nrf_fstorage_sd uses the SoftDevice to write to flash. This implementation can safely be
     * used whenever there is a SoftDevice, regardless of its status (enabled/disabled). */
    p_fs_api = &amp;amp;nrf_fstorage_sd;
#else
    NRF_LOG_INFO(&amp;quot;SoftDevice not present.&amp;quot;);
    NRF_LOG_INFO(&amp;quot;Initializing nrf_fstorage_nvmc implementation...&amp;quot;);
    /* Initialize an fstorage instance using the nrf_fstorage_nvmc backend.
     * nrf_fstorage_nvmc uses the NVMC peripheral. This implementation can be used when the
     * SoftDevice is disabled or not present.
     *
     * Using this implementation when the SoftDevice is enabled results in a hardfault. */
    p_fs_api = &amp;amp;nrf_fstorage_nvmc;
#endif

    rc = nrf_fstorage_init(&amp;amp;fstorage, p_fs_api, NULL);
    APP_ERROR_CHECK(rc);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;p_fs_api should point to either of&amp;nbsp;nrf_fstorage_nvmc or nrf_fstorage_sd depending on whether softdevice is enabled or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash read/write operation over NRF52810</title><link>https://devzone.nordicsemi.com/thread/282825?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 09:28:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:994b3006-d483-40cf-95fa-d3ef2f89c278</guid><dc:creator>rajAsthana</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am still waiting for your reply,&lt;/p&gt;
&lt;p&gt;with debug log as shown below there is a problem in &lt;span&gt;nrf_fstorage_init().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.&lt;br /&gt;&amp;lt;error&amp;gt; nrf_fstorage: p_api check failed in nrf_fstorage_init() with value 0xE.&lt;br /&gt;&amp;lt;error&amp;gt; app: Fatal error&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Raj&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash read/write operation over NRF52810</title><link>https://devzone.nordicsemi.com/thread/282575?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 05:43:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ad57d75-58ac-4736-b6a1-16b1cf083eba</guid><dc:creator>rajAsthana</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am using NordicSDK\examples\peripheral\flash_fstorage this example to write on flash,But when i called the function&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;rc = nrf_fstorage_init(&amp;amp;fstorage, p_fs_api, NULL); my code stucks and harf fault error comes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think i am passing wrong start and end address.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please suggest how to set the start and end adress for read and write.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Raj&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash read/write operation over NRF52810</title><link>https://devzone.nordicsemi.com/thread/282416?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 11:10:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:497c2b67-088b-481c-ac7a-072ad21661ee</guid><dc:creator>Turnaev</dc:creator><description>&lt;p&gt;You can use FDS or Fstorage, or low level write.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;See examples:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NordicSDK\examples\peripheral\flash_fds&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NordicSDK\examples\peripheral\flash_fstorage&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NordicSDK\examples\peripheral\flashwrite&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Good luck!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>