<?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>nrf_fstorage_erase returns invalid address error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26543/nrf_fstorage_erase-returns-invalid-address-error</link><description>Hello, 
 I&amp;#39;ve been working on the ble_multilink example and managed to combine that with the ble_hrs_c example to connect to multiple heart rate units and receive the data through UART. Instead of searching for specific pre-defined UUIDs I would like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Nov 2017 07:40:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26543/nrf_fstorage_erase-returns-invalid-address-error" /><item><title>RE: nrf_fstorage_erase returns invalid address error</title><link>https://devzone.nordicsemi.com/thread/104417?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2017 07:40:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:510ea4de-d952-48bc-a15d-ae75ad7d4911</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;Hi,
0x007F004 is not aligned to a page boundary. 0x007F000 is.
Erase operations should be aligned to a page boundary.
Try starting the erase at 0x007F000.&lt;/p&gt;
&lt;p&gt;Regards,
emdi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_fstorage_erase returns invalid address error</title><link>https://devzone.nordicsemi.com/thread/104418?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2017 14:29:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13d54aa8-0dd7-4243-b13e-ce106db78b6a</guid><dc:creator>Coz</dc:creator><description>&lt;p&gt;I&amp;#39;ve figured out the problem and it was an error on my behalf because i didn&amp;#39;t fully understand how the fstorage system worked. Because I only want to use one page in flash I should only be erasing that one page and not fiddle around with the other pages unless I am planning on writing to those pages. The problem was that I was providing an address to the erase function which was an address inside the page I was using. This meant that it wasn&amp;#39;t the address of the next page hence it was not at the page boundary. I fixed the problem by always providing the address of the first page to the nrf_fstorage_erase() function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_fstorage_erase returns invalid address error</title><link>https://devzone.nordicsemi.com/thread/104416?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2017 09:14:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee980949-22f8-4c02-adb6-cf399235745f</guid><dc:creator>Coz</dc:creator><description>&lt;p&gt;Yeah, it seems that way. Although I&amp;#39;m not entirely sure where this un-alignment is happening, because I think the addresses and pages I&amp;#39;m providing to the function have all been aligned.&lt;/p&gt;
&lt;p&gt;The information you asked for, right before the system returns the error is:&lt;/p&gt;
&lt;p&gt;p_fs-&amp;gt;p_flash_info = 0x00031920 (&amp;amp;m_flash_info),
page_addr = 0x007F004&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_fstorage_erase returns invalid address error</title><link>https://devzone.nordicsemi.com/thread/104415?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2017 08:38:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef8603eb-4742-4d57-b9a1-a085ca3ca6f1</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;It seems you are trying to do an erase operation beginning from an address that is not aligned to a page boundary.&lt;/p&gt;
&lt;p&gt;Could you check what are the values of p_fs-&amp;gt;p_flash_info and page_addr?&lt;/p&gt;
&lt;p&gt;emdi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>