<?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>Write in flash nrf52832 sdk 11s132 softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26025/write-in-flash-nrf52832-sdk-11s132-softdevice</link><description>Hi all, 
 i need to write in flash, and i try to use the example flash write of sdk. It works correctly but when i put it in my code, the writing register ( NRF_NVMC-&amp;gt;CONFIG = (NVMC_CONFIG_WEN_Wen &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos);) failed. 
 The difference is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Oct 2017 07:49:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26025/write-in-flash-nrf52832-sdk-11s132-softdevice" /><item><title>RE: Write in flash nrf52832 sdk 11s132 softdevice</title><link>https://devzone.nordicsemi.com/thread/102566?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 07:49:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b039385-6aa8-460f-8f18-0a4f21f8aa7a</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;I don&amp;#39;t think the version of the fstorage library in SDK 11 allows to set your own p_start_addr and p_end_addr. You could try to use the SoftDevice function instead: sd_flash_write().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write in flash nrf52832 sdk 11s132 softdevice</title><link>https://devzone.nordicsemi.com/thread/102565?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 07:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:133059f0-d61f-41be-8558-c5dbc530cc61</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;In the fds_init the     p_config-&amp;gt;p_end_addr   = p_current_end; is always 0x8000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write in flash nrf52832 sdk 11s132 softdevice</title><link>https://devzone.nordicsemi.com/thread/102564?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 07:44:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d802c93c-ed9c-4daf-b637-fb729621ffc3</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;i use the sdk 11&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write in flash nrf52832 sdk 11s132 softdevice</title><link>https://devzone.nordicsemi.com/thread/102563?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 07:42:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9807fc3f-39ec-4e8f-ae4f-ab7af1587a88</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;Which SDK version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write in flash nrf52832 sdk 11s132 softdevice</title><link>https://devzone.nordicsemi.com/thread/102567?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 19:38:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1755fdfe-8e05-46cf-940b-9f27d26e8aab</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;This my code, and would use one page of flash to write a flag. I try to configuration for my application as:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Our fstorage configuration.
FS_REGISTER_CFG(fs_config_t flashConfig) =
{
    .p_start_addr = (uint32_t *)0x2FE00,
    .p_end_addr   = (uint32_t *)0x2FE10,
    .callback  = DRV_FLASH_Callback,
    .num_pages = 1,
    
    // We register with the highest priority in order to be assigned
    // the pages with the highest memory address (closest to the bootloader).
    .priority  = 0xFE
};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;but when the fs_init is called the start and stop address is different how i expect, and the reason is that in fs_init the end address is end of flash and consider the page allocated calculated the start address...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write in flash nrf52832 sdk 11s132 softdevice</title><link>https://devzone.nordicsemi.com/thread/102562?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 14:51:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e15071d0-9653-4b81-90f6-5bf924dddd2d</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;I would write in a flash memory a flag in case of reset of device simply.&lt;/p&gt;
&lt;p&gt;But i would write in memory area outside the linker file. In other word, for my project i use flash memory until the address 0x0002FE00 and at first address useful i would write my flag in memory&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write in flash nrf52832 sdk 11s132 softdevice</title><link>https://devzone.nordicsemi.com/thread/102561?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 13:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49ce15fc-64fd-406d-9486-9badc303bdc9</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;Short answer: yes.&lt;/p&gt;
&lt;p&gt;In practice, a &amp;#39;configuration&amp;#39; is just an area of flash plus a set of functions that fstorage uses to write to that area. You can &amp;#39;share&amp;#39; a configuration or you can use different ones, depending on what you want to do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write in flash nrf52832 sdk 11s132 softdevice</title><link>https://devzone.nordicsemi.com/thread/102560?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 13:42:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f5ff3fa-2322-4b8f-b859-0122d94ec140</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;I can use different configuration for every application that use fstorage?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write in flash nrf52832 sdk 11s132 softdevice</title><link>https://devzone.nordicsemi.com/thread/102559?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 13:29:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d04addd-f461-469c-a216-502c9022ebcc</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;You can use the fstorage library for that, check out this page:
&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.0.0%2Flib_fstorage.html&amp;amp;cp=4_0_0_3_49"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write in flash nrf52832 sdk 11s132 softdevice</title><link>https://devzone.nordicsemi.com/thread/102558?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 13:26:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de783ca0-4864-47a6-9879-6ed3bf3e75a1</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;i have looked the library. But i don&amp;#39;t understand clearly if i can use it to write a value in a specific address of flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write in flash nrf52832 sdk 11s132 softdevice</title><link>https://devzone.nordicsemi.com/thread/102557?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 11:34:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:041a0623-c136-4159-977f-20fa55f4f89c</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;You can&amp;#39;t use those registers when the SoftDevice is present and enabled.
I suggest you have a look at the fstorage and fds libraries.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>