<?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>Problems with flashwriting (ret_code_t=2) (nRF52832_XXAA)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21922/problems-with-flashwriting-ret_code_t-2-nrf52832_xxaa</link><description>I&amp;#39;m having difficulties writing, retrieving and deleting data from flash, using fds on nRF52832_XXAA. Sometimes the flash writing succeeds, sometimes it fails with with ret_code_t=2. I also do not seem able to delete data, DEADBEEFBADFOOD always at location</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 May 2017 12:07:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21922/problems-with-flashwriting-ret_code_t-2-nrf52832_xxaa" /><item><title>RE: Problems with flashwriting (ret_code_t=2) (nRF52832_XXAA)</title><link>https://devzone.nordicsemi.com/thread/86072?ContentTypeID=1</link><pubDate>Thu, 11 May 2017 12:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fcf1520-fa7e-4c9c-b3b7-32839e9766a0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;0x2 is FDS_ERR_NOT_INITIALIZED. It a bit strange that you sometimes get this. Could you upload your complete project, or a project that reproduces the behavior so I can test it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with flashwriting (ret_code_t=2) (nRF52832_XXAA)</title><link>https://devzone.nordicsemi.com/thread/86071?ContentTypeID=1</link><pubDate>Wed, 10 May 2017 15:06:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef3641c8-5ad9-4c8e-83c3-db368b95ccb3</guid><dc:creator>problematic</dc:creator><description>&lt;p&gt;I have updated the question to give more info. And yes, fds_record_write() returns error 0x2. Usually the writing never finishes, ie. the write_flag is never set to 1, but it seems I have problems with writing, reading and deletion, so maybe I&amp;#39;m doing something wrong in general. I know that there is a lot of memory available (I looked at the addresses, so that&amp;#39;s not the problem either).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with flashwriting (ret_code_t=2) (nRF52832_XXAA)</title><link>https://devzone.nordicsemi.com/thread/86073?ContentTypeID=1</link><pubDate>Wed, 10 May 2017 13:30:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:240a4057-173f-45bd-8625-2518f6faab2b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;&lt;em&gt;I&amp;#39;m also wondering if there is a way to reliably delete everything from flash, so that I can test and run code within the same data every time.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This should be asked separately in a new question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with flashwriting (ret_code_t=2) (nRF52832_XXAA)</title><link>https://devzone.nordicsemi.com/thread/86070?ContentTypeID=1</link><pubDate>Wed, 10 May 2017 13:30:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10d6094b-dfec-4664-9e12-1c23c09f376c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Which SDK and SoftDevice are you using? How are you using FDS? Maybe you can edit your question and include some code? What returns error code 0x2? fds_record_write()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>