<?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>Hard fault in the fds_init() method using the nrf52832 with RTOS + Softdevice when trying to store an string in a record using fds after loading app with boot loader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55340/hard-fault-in-the-fds_init-method-using-the-nrf52832-with-rtos-softdevice-when-trying-to-store-an-string-in-a-record-using-fds-after-loading-app-with-boot-loader</link><description>Hello everyone, 
 I&amp;#39;m working in an application where I need to store a string in flash so I can keep that value like if it where settings when doing a firmware update so the app can read those values and use them to configure some stuff inside my app</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Dec 2019 15:16:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55340/hard-fault-in-the-fds_init-method-using-the-nrf52832-with-rtos-softdevice-when-trying-to-store-an-string-in-a-record-using-fds-after-loading-app-with-boot-loader" /><item><title>RE: Hard fault in the fds_init() method using the nrf52832 with RTOS + Softdevice when trying to store an string in a record using fds after loading app with boot loader</title><link>https://devzone.nordicsemi.com/thread/225207?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2019 15:16:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5847dcd5-259f-4fd6-aa6a-9873d5068d8d</guid><dc:creator>Francisco Betancourt</dc:creator><description>&lt;p&gt;Yes, what you said about the FDS_VIRTUAL_PAGES is right, I was writing over the bootloader area, changing the value from 32 to only 3 pages, solved the issue.&lt;br /&gt;&lt;br /&gt;Thanks a lot bjorn-spockeli.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault in the fds_init() method using the nrf52832 with RTOS + Softdevice when trying to store an string in a record using fds after loading app with boot loader</title><link>https://devzone.nordicsemi.com/thread/225194?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2019 14:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77419f0f-2131-4f53-b843-e4e293e905db</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Apologies for the late reply. OK. The FDS module should place the flash pages used for data storage below the bootloader and from the logs it appears to be doing this correctly, so its hard to say whats going on there.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user=""]It is crashing something after the fds_init and before wait_for_fds_ready.[/quote]
&lt;p&gt;&amp;nbsp;Are you able to trial and error&amp;nbsp;breakpoint placement able to figure out which function that is called by fds_init that causes the device to hang?&lt;/p&gt;
&lt;p&gt;Would it be possible for you to share the project so that I may try to debug it here on my end?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault in the fds_init() method using the nrf52832 with RTOS + Softdevice when trying to store an string in a record using fds after loading app with boot loader</title><link>https://devzone.nordicsemi.com/thread/224800?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 17:51:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59de83cb-8ad7-4233-8f26-c07508ae9369</guid><dc:creator>Francisco Betancourt</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2019_2D00_12_2D00_10_5F00_11_2D00_50_2D00_46.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault in the fds_init() method using the nrf52832 with RTOS + Softdevice when trying to store an string in a record using fds after loading app with boot loader</title><link>https://devzone.nordicsemi.com/thread/224628?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 09:21:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a05c6386-bbc8-4b8c-ba5d-2432569eb289</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Francisco,&lt;/p&gt;
[quote user=""]Do you know if the boot loader can affect the FDS file system In a way that can cause a crash or affecting some interrupts that the&amp;nbsp;wait_for_fds_ready is stuck waiting after fds_init causing a hard fault crashing the app.[/quote]
&lt;p&gt;The FDS module will place its data pages below the bootloader in flash and the bootloader will not touch these pages as long as the&amp;nbsp;NRF_DFU_APP_DATA_AREA_SIZE define is larger or equal to the number of FDS pages used.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looking at the log above it seems that you have 32 FDS pages, starting from 0x44000 all the way up to where&amp;nbsp;bootloader starts at 0x64000?&amp;nbsp;What it&amp;nbsp;FDS_VIRTUAL_PAGES set to in you sdk_config.h file?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>