<?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>Save a single byte onn flash is it possible?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22277/save-a-single-byte-onn-flash-is-it-possible</link><description>Hi all, 
 I am trying to save an UART variable I am receiving. My case is very similar to the example Flash Write Example, but I would write few bytes instead of the whole flash page it is possible? 
 My application uses a nRF52 and requires SDk13 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 May 2017 13:31:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22277/save-a-single-byte-onn-flash-is-it-possible" /><item><title>RE: Save a single byte onn flash is it possible?</title><link>https://devzone.nordicsemi.com/thread/87595?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 13:31:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:633b28a0-81ae-4a0c-887c-8aa2be4c9a54</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;No, with flash technology you will always need to reserve at least one page if you want to do multiple write/erase cycles. That&amp;#39;s kind of hard stop cause by physics and design of the chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save a single byte onn flash is it possible?</title><link>https://devzone.nordicsemi.com/thread/87593?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 13:03:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e765929b-8374-43e5-8cd1-a31d8bf3bbaa</guid><dc:creator>Mufasa1</dc:creator><description>&lt;p&gt;I was using the UICR one-time registers and planning to move to another solutions like FDS. the problem with UICR registers  it is not flexible  (does not alllow multiple writes/edit) and I wont like to use a whole flash page if I want to use few bytes FDS case. What other practical solution exists?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save a single byte onn flash is it possible?</title><link>https://devzone.nordicsemi.com/thread/87594?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 08:24:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7eb42e48-847f-4f87-9f6d-3313c0f931a4</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;What do you mean by &lt;em&gt;&amp;quot;I was using the UICR for the task&amp;quot;&lt;/em&gt;? That is NVM region but with specific restrictions, you can basically just write one-time into few registers. For that classic routine should be used (as for any direct work with registers!): read out full 32-bit value, mask the bits you are modifying merge it with new value you want to push in. Then simply set the register (pointer to register 32-bit address in continuous address space of the chip) to new value and you are done. Or you meant UART not UICR? I&amp;#39;m confused.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save a single byte onn flash is it possible?</title><link>https://devzone.nordicsemi.com/thread/87592?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 00:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1798ef2e-1caf-442b-804c-c1ae8bfc3e5f</guid><dc:creator>Mufasa1</dc:creator><description>&lt;p&gt;I was using the UICR for the task, but I would go into troubles If I want edit the data
your options are FSD?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save a single byte onn flash is it possible?</title><link>https://devzone.nordicsemi.com/thread/87591?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 21:07:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36fed2cb-db95-47f8-af8c-eebe6d2e9aee</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;The write command must contain 32 bits, that what I was saying. Sure you can &amp;quot;change&amp;quot; only single bit which will effectively mean that you will &amp;quot;write&amp;quot; single bit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save a single byte onn flash is it possible?</title><link>https://devzone.nordicsemi.com/thread/87590?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 21:01:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acf9ad0e-2491-49d4-8444-d53a9f65c36e</guid><dc:creator>HeS</dc:creator><description>&lt;p&gt;Its possible to write single byte (bit:) into the flash. Rest of bytes (bits) in 32-bit word must be set to 0xFF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save a single byte onn flash is it possible?</title><link>https://devzone.nordicsemi.com/thread/87589?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 15:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fb8ea5f-966d-424e-aeb9-4fb5481a82aa</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Sure, you can write single word (32 bits) into the flash. Just make sure it&amp;#39;s &amp;quot;empty&amp;quot; (= 0xFFFFFFFF aka all bits set to 1) before writing otherwise your write will probably result into wrong data (flash technology cannot change 0 bits to 1 unless you erase whole page). This is one of main added values of all the pstorage/fstorage/FDS libraries, they should manage page erase, backup etc. so you do just &amp;quot;logical&amp;quot; operations and leave dealing with &amp;quot;physical&amp;quot; addressing to lower layer functions and module logic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>