<?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>How to store a few important parameters of codes in flash in nRF9160?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46945/how-to-store-a-few-important-parameters-of-codes-in-flash-in-nrf9160</link><description>I want to store a few parameters in flash. I don&amp;#39;t want to use an external EEPROM because it takes an additional space on a board. 
 Does anyone know how to do it or a sample code? 
 Thank you in advance.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 May 2019 15:07:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46945/how-to-store-a-few-important-parameters-of-codes-in-flash-in-nrf9160" /><item><title>RE: How to store a few important parameters of codes in flash in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/187050?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 15:07:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08ba4dfa-b049-4d4e-a1ce-7e9cbfe697fd</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;OK. It works.&lt;span&gt;I&amp;#39;m using v0.4.0 of nrf repository, the latest one.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;I followed this instruction.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46787/application-won-t-run---erroneous-flash-address-range"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/46787/application-won-t-run---erroneous-flash-address-range&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to store a few important parameters of codes in flash in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/186299?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 08:03:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e87a0eb-6742-4384-aa4d-af9cc036b546</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have no problem building the example for either the nrf9160_pca10090 or the nrf52_pca10040 boards.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you delete the build folder and try opening the example again?&lt;/p&gt;
&lt;p&gt;Could you take a screenshot of the parameters in the SES project importer?&lt;/p&gt;
&lt;p&gt;Have you tried to open any of the 9160 examples in the nrf/samples/nrf9160 folder to see if they work?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to store a few important parameters of codes in flash?</title><link>https://devzone.nordicsemi.com/thread/185791?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 15:33:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90534d2f-5b93-4c56-ad20-b9dc20a6f4aa</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Thank you for your reply!&lt;/p&gt;
&lt;p&gt;I found the sample code related to nvs: ../nRF9160/ncs/zephyr/samples/subsys/nvs&lt;/p&gt;
&lt;p&gt;This zephyr firmware version was tags/v1.13.99-ncs2, which seems not to support nRF9160 flash writing and reading functions. I had some errors when I copied the main.c and prj.conf, and used it. Then I updated zephyr, mcuboot, nerf, and nrfxlib folders.&lt;/p&gt;
&lt;p&gt;zephyr: tags/v1.14.99-ncs1-rc2&lt;br /&gt;mcuboot: tags/v1.3.99-ncs1-rc2&lt;br /&gt;nerf: tags/v0.4.0-rc2&lt;br /&gt;nrfxlib: tags/v0.4.0-rc2&lt;/p&gt;
&lt;p&gt;The previous errors disappeared, but other errors ware caused.&lt;br /&gt;Can you give me any advice?&lt;br /&gt;I copy and use this code:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/tree/master/samples/subsys/nvs"&gt;https://github.com/NordicPlayground/fw-nrfconnect-zephyr/tree/master/samples/subsys/nvs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Building ‘zephyr/zephyr_prebuilt.elf’ from solution ‘build’ in configuration ‘Common’
1&amp;gt; Linking ‘zephyr_prebuilt.elf’
1&amp;gt; Memory region         Used Size  Region Size  %age Used
1&amp;gt;            FLASH:       27796 B       192 KB     14.14%
1&amp;gt;             SRAM:        6216 B        64 KB      9.48%
1&amp;gt;         IDT_LIST:         592 B         2 KB     28.91%
1&amp;gt; /usr/local/opt/gnuarmemb/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld: warning: orphan section `.gnu.linkonce.sw_isr_table&amp;#39; from `zephyr/libzephyr.a(isr_tables.c.obj)&amp;#39; being placed in section `.gnu.linkonce.sw_isr_table&amp;#39;.
1&amp;gt; zephyr/libzephyr.a(nrf5_power_clock.c.obj): In function `_clock_control_init&amp;#39;:
1&amp;gt; /Users/fukuharayuusuke/Documents/nRF9160/ncs/zephyr/drivers/clock_control/nrf5_power_clock.c:447: undefined reference to `_irq_priority_set&amp;#39;
1&amp;gt; /Users/fukuharayuusuke/Documents/nRF9160/ncs/zephyr/drivers/clock_control/nrf5_power_clock.c:451: undefined reference to `_arch_irq_enable&amp;#39;
1&amp;gt; zephyr/libzephyr.a(nrf5_power_clock.c.obj): In function `_m16src_start&amp;#39;:
1&amp;gt; /Users/fukuharayuusuke/Documents/nRF9160/ncs/zephyr/drivers/clock_control/nrf5_power_clock.c:67: undefined reference to `_arch_irq_disable&amp;#39;
1&amp;gt; /Users/fukuharayuusuke/Documents/nRF9160/ncs/zephyr/drivers/clock_control/nrf5_power_clock.c:90: undefined reference to `_arch_irq_enable&amp;#39;
1&amp;gt; zephyr/arch/arm/core/cortex_m/mpu/libarch__arm__core__cortex_m__mpu.a(arm_core_mpu.c.obj): In function `z_arch_configure_static_mpu_regions&amp;#39;:
1&amp;gt; /Users/fukuharayuusuke/Documents/nRF9160/ncs/zephyr/arch/arm/core/cortex_m/mpu/arm_core_mpu.c:130: undefined reference to `_ramfunc_ram_start&amp;#39;
1&amp;gt; /Users/fukuharayuusuke/Documents/nRF9160/ncs/zephyr/arch/arm/core/cortex_m/mpu/arm_core_mpu.c:130: undefined reference to `_ramfunc_ram_size&amp;#39;
1&amp;gt; zephyr/kernel/libkernel.a(init.c.obj): In function `z_data_copy&amp;#39;:
1&amp;gt; /Users/fukuharayuusuke/Documents/nRF9160/ncs/zephyr/kernel/init.c:182: undefined reference to `_ramfunc_ram_size&amp;#39;
1&amp;gt; /Users/fukuharayuusuke/Documents/nRF9160/ncs/zephyr/kernel/init.c:182: undefined reference to `_ramfunc_rom_start&amp;#39;
1&amp;gt; /Users/fukuharayuusuke/Documents/nRF9160/ncs/zephyr/kernel/init.c:182: undefined reference to `_ramfunc_ram_start&amp;#39;
1&amp;gt; collect2: error: ld returned 1 exit status
Build failed&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to store a few important parameters of codes in flash?</title><link>https://devzone.nordicsemi.com/thread/185639?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 08:22:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c422878-f09e-40be-9dcc-b43c23ab4f60</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;span&gt;Flash Data Storage -&amp;nbsp;&lt;/span&gt;FDS:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fds.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fds.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Flash Storage:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fstorage.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fstorage.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Examples for both are in the SDK.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to store a few important parameters of codes in flash?</title><link>https://devzone.nordicsemi.com/thread/185633?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 08:01:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da88881a-71de-4c72-9e79-91df5a54c4d5</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Zephyr contains a couple of different libraries for writing data into internal flash.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest you take a look at the &lt;a href="https://docs.zephyrproject.org/latest/reference/storage/nvs/nvs.html"&gt;NVS library&lt;/a&gt;, which is a good place to start. The documentation describes how to use the library, and points to an example also.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>