<?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>RAM read  on 51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19811/ram-read-on-51822</link><description>Hi.
Faced with a strange situation.
Example. All look good when I read code area: 
 void ex1 (void)
{
 uint32_t *addr_out;
 uint32_t i,word;
 
 addr_out=(uint32_t *)0x0000000UL;
	
 for (i=0;i&amp;lt;5;i++,addr_out++)
 {
 word=*addr_out;
 NRF_LOG_INFO</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 19 Feb 2017 08:24:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19811/ram-read-on-51822" /><item><title>RE: RAM read  on 51822</title><link>https://devzone.nordicsemi.com/thread/77061?ContentTypeID=1</link><pubDate>Sun, 19 Feb 2017 08:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3a86cfc-731f-4f76-a51a-6bb895de700b</guid><dc:creator>hamster66</dc:creator><description>&lt;p&gt;Ok, I&amp;#39;m a donky... :) My structure address not aligned to the (uint32_t *)...
like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static  data  __ALIGN(4) data_db[10];
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM read  on 51822</title><link>https://devzone.nordicsemi.com/thread/77062?ContentTypeID=1</link><pubDate>Sun, 19 Feb 2017 07:52:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:572b67d9-7ecd-4cfb-937a-12d67a0e7719</guid><dc:creator>hamster66</dc:creator><description>&lt;p&gt;Sorry, I missing zero in example. In real code look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;addr_out=(uint32_t *)&amp;amp;data_db;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;data is a structure with some variables like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;typedef struct
{
    uint8_t a [4];                     
    uint8_t b [8];           
    uint8_t d [16]; 
    uint8_t c [4];                
                                                        
} data;	
static  data  data_db[10];
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and data_db address somewhere in 0x2000023e.
Code in topic was born during the study of this problem :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM read  on 51822</title><link>https://devzone.nordicsemi.com/thread/77063?ContentTypeID=1</link><pubDate>Sat, 18 Feb 2017 23:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9727401f-9ba1-4b3d-84f1-854942757ebb</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;You&amp;#39;re missing a zero in the address, The RAM base is starting from 0x2000_0000 :-) Happy coding!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>