<?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>Using internal XRAM</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/16112/using-internal-xram</link><description> My project involves using Serial I/O 
port. The code written was working fine when 
there was EXTERNAL XRAM on board. We have been using Winbond 78E516 cpu. 
 
Now the 
EXTERNAL XRAM was removed from the design. 
I have tried to utilize the INTERNAL</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Using internal XRAM</title><link>https://community.arm.com/thread/41225?ContentTypeID=1</link><pubDate>Fri, 07 Nov 2003 11:38:18 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ba2f990a-681d-44c7-89b7-3e4b8a0803f9</guid><dc:creator>Frank Hu</dc:creator><description>&lt;p&gt;Hi Jimmy,&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;ve solved that problem before. According to the data sheet of Winbond 78E516, you can set it up to use the on-chip XRAM as PDATA or simply use it as XDATA.&lt;br /&gt;
&lt;br /&gt;
My suggestion is adding the following code in the startup.a51 before you clear the on-chip XRAM:&lt;br /&gt;
&lt;pre&gt;
	MOV	CHPENR,#87H
	MOV	CHPENR,#59H
	ORL	CHPCON,#00010000B	; enable AUX-RAM
	MOV	CHPENR,#00H
&lt;/pre&gt;
&lt;br /&gt;
BTW, don&amp;#39;t forget P2 is also need to be set  if you use PDATA instead of XDATA.&lt;br /&gt;
&lt;br /&gt;
If it still doesn&amp;#39;t work, I think you have to take out your ICE to have a memory check on your board to see what&amp;#39;s going on there.&lt;br /&gt;
&lt;br /&gt;
Cheer up&lt;br /&gt;
&lt;br /&gt;
Frank&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>