<?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>Address Discrepances between Debugging and nrfjprog memrd</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33432/address-discrepances-between-debugging-and-nrfjprog-memrd</link><description>Introduction 
 I use fStorage to write some data to flash and I read the data by following procedure: 
 uint32_t Read32(uint32_t address) { return *(mpFlashConfig-&amp;gt;p_start_addr + address); } 
 All seamed working correctly. But then I tried to read some</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Apr 2018 14:37:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33432/address-discrepances-between-debugging-and-nrfjprog-memrd" /><item><title>RE: Address Discrepances between Debugging and nrfjprog memrd</title><link>https://devzone.nordicsemi.com/thread/128507?ContentTypeID=1</link><pubDate>Mon, 16 Apr 2018 14:37:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90638822-253b-4cbf-a937-4e75e4acdf87</guid><dc:creator>Roman</dc:creator><description>&lt;p&gt;This is simple&lt;strong&gt; pointer arithmetics&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;p_start_addr is uint32_t const pointer, but addresses are byte-wise organized.&lt;/p&gt;
&lt;p&gt;(p_start_addr++ would increment the p_start_addr by four)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Adding some address value means the address is multiplied by four and added to the pointer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>