<?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>Issues Reading from Flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50265/issues-reading-from-flash</link><description>I am running flash_fstorage_example on the nRF52840 DK with SDK 15.0.0 
 I am having some problems with the example, as below: 
 1. When I run the example and use the shell, I can read 0xBADC0FFE from address 0x3e000 with command `read hex 3e000 4`. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Jul 2019 19:39:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50265/issues-reading-from-flash" /><item><title>RE: Issues Reading from Flash</title><link>https://devzone.nordicsemi.com/thread/200821?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 19:39:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dccf102e-bb5b-4827-9e64-61308e5e366f</guid><dc:creator>Lydia</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thanks! This works. What about storing a hex value, and not a string?&lt;/p&gt;
&lt;p&gt;Additionally, on my second point above, do you have any idea why I am only able to see some log messages on running the example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues Reading from Flash</title><link>https://devzone.nordicsemi.com/thread/200691?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 08:42:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1505b68-10c1-475a-962e-cb70671c8660</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It is correct as you say, you can only write from 1 to 0, and need to erase in between.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try to write &amp;quot;write -h&amp;quot;. It says that you write ASCII bytes to the flash. In hex values, the ASCII string DEADBEEF is 0x44:45:41:44:42:45:45:46. You can find the ASCII table e.g. &lt;a href="http://www.asciitable.com/" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you write the commands:&lt;/p&gt;
&lt;p&gt;erase 0x3E000 1&lt;br /&gt;write 0x3E000 DEADBEEF&lt;br /&gt;read &lt;strong&gt;str&lt;/strong&gt;&amp;nbsp;&lt;span&gt;0x3E000 8&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It will print DEADBEEF, because it reads the string, and prints ascii symbols.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>