<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/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/"><channel><title>how to access ERAM in AT89LP51RD2</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/41713/how-to-access-eram-in-at89lp51rd2</link><description> 
How to access ERAM(2 KB on chip memory) in AT89lp51rd2? 
I have added following code to STARTUP.A51 file. 

 
XDATALEN EQU 7FFH 
ANL AUXR1,#NOT 02H ; AUXR1/Bit 1 (clear to 0 to enable on-chip
XRAM). 

 
if I add following lines, program hang. 

 
xdata</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: how to access ERAM in AT89LP51RD2</title><link>https://community.arm.com/thread/94231?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2017 20:58:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8b09fa5a-ee39-49ee-9761-6f86be849421</guid><dc:creator>Nilesh n</dc:creator><description>&lt;p&gt;&lt;p&gt;
ptr is character pointer.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access ERAM in AT89LP51RD2</title><link>https://community.arm.com/thread/85604?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2017 05:26:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1d2589f4-a6f9-4ae6-ad7d-ffd4d312eb17</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;xdata &lt;b&gt;char&lt;/b&gt; *ptr;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;for(ptr=0;ptr&amp;lt;&lt;b&gt;0x300&lt;/b&gt;;ptr++)&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
put your thinking cap on&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>