<?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>Problem addressing XDATA memory above 100HEX</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/13946/problem-addressing-xdata-memory-above-100hex</link><description> When my code is compiled, it causes XDATA memory above 100HEX to 
be addressed with MOVX @R0,A rather than MOVX @DPTR,A instructions. 
This causes variables in the XDATA range 0 - 100HEX to be overwritten. 
I do not have this problem with XDATA above</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Problem addressing XDATA memory above 100HEX</title><link>https://community.arm.com/thread/37063?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2000 03:10:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:41d88527-e38e-4424-bfdd-f58085a5a29d</guid><dc:creator>Andrew Neil</dc:creator><description>&lt;p&gt;Have you seen:&lt;br /&gt;
&lt;a href="http://www.keil.com/support/docs/719.htm"&gt;http://www.keil.com/support/docs/719.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
You will also need to set up the specifications for PDATA and XDATA in your Project - on the &amp;#39;BL51 Locate&amp;#39; tab.&lt;br /&gt;
&lt;br /&gt;
You may also need to modify startup.a51,&lt;br /&gt;
which includes the definition of which page of XDATA is used for PDATA&lt;br /&gt;
See: &lt;a href="http://www.keil.com/support/docs/1296.htm"&gt;http://www.keil.com/support/docs/1296.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
(1 &amp;quot;page&amp;quot; = 256 bytes = 0x100 - surprise!)&lt;br /&gt;
&lt;br /&gt;
This might also help:&lt;br /&gt;
&lt;a href="http://www.keil.com/support/docs/746.htm"&gt;http://www.keil.com/support/docs/746.htm&lt;/a&gt;&lt;br /&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem addressing XDATA memory above 100HEX</title><link>https://community.arm.com/thread/37061?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2000 13:38:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8c156465-7998-436a-b066-c861bb5cefd5</guid><dc:creator>Mark Odell</dc:creator><description>&lt;p&gt;Please inlcude a short segment of C code that demonstrates the problem. Note any compiler flags you use too.&lt;br /&gt;
&lt;br /&gt;
XDATA can be accessed with R0 as a page pointer by setting up Port 2 and then using R0 to control Port 0 (the LSB). Are you using pdata anywhere?&lt;br /&gt;
&lt;br /&gt;
- Mark&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>