<?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 with XDATA</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/24045/problem-with-xdata</link><description> 
Hi! 

 
XDATA is not working properly in P89v664 microcontroller.It is
compiling well but in target board not showing result. 
but same program (using XDATA)working for p89v51rd . 

 
Here we are using Flash magic version 4.24 

 
Please suggest me</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: problem with XDATA</title><link>https://community.arm.com/thread/124800?ContentTypeID=1</link><pubDate>Wed, 09 Jul 2008 17:10:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:19185ee8-5c42-4eac-ae88-a1b1af3d4055</guid><dc:creator>David McCauley</dc:creator><description>&lt;p&gt;&lt;p&gt;
Oops - must withdraw my comments. Unlike the P89C66x series, the
P98V66x series requires EXTRAM to be set!&lt;/p&gt;

&lt;p&gt;
Sorry for leaping before looking.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with XDATA</title><link>https://community.arm.com/thread/114104?ContentTypeID=1</link><pubDate>Wed, 09 Jul 2008 15:37:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b43acf01-eb4a-481f-8113-a26cc3d52be9</guid><dc:creator>David McCauley</dc:creator><description>&lt;p&gt;&lt;p&gt;
Carefully look at my first response - in particular the bit about
EXTRAM needing to be cleared.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with XDATA</title><link>https://community.arm.com/thread/124803?ContentTypeID=1</link><pubDate>Wed, 09 Jul 2008 05:19:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:975026c4-447c-4773-96cc-aaf4a54e8265</guid><dc:creator>Nag Mani</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Per Westermark!&lt;/p&gt;

&lt;p&gt;
my printlcd code:&lt;/p&gt;

&lt;p&gt;
void printlcd(unsigned char *str)&lt;br /&gt;
{ while(*str) //till string ends write(*str++,1); //send characters
one by one&lt;br /&gt;
}&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with XDATA</title><link>https://community.arm.com/thread/114090?ContentTypeID=1</link><pubDate>Wed, 09 Jul 2008 04:48:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7cbef926-b666-4612-b616-fe6a2e42dee5</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Somebody please don&amp;#39;t nag.&lt;/p&gt;

&lt;p&gt;
You haven&amp;#39;t shown enough code.&lt;/p&gt;

&lt;p&gt;
Does your function printlcd() expect a pointer to xdata text or
exactly what pointer type does it expect?&lt;/p&gt;

&lt;p&gt;
If you think your LCD code is secret, or too much noise to
present: Create a small sample without the LCD code then - for
example a dummy printlcd() function that computes the length and
checksum of the string it receives. If your real printlcd() function
fails with xdata, then such a dummy function should also fail. In
this case, we can&amp;#39;t see how your printlcd() function is declared, or
how it uses the pointer it receives as a parameter.&lt;/p&gt;

&lt;p&gt;
Have you separated the two cases where you have the pointer stored
in xdata, and when it points to text stored in xdata?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with XDATA</title><link>https://community.arm.com/thread/100873?ContentTypeID=1</link><pubDate>Wed, 09 Jul 2008 02:48:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f2335b8d-9a8f-4887-abc0-20a5f39b69c4</guid><dc:creator>Nag Mani</dc:creator><description>&lt;p&gt;&lt;p&gt;
anybody Please tell me the solution&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with XDATA</title><link>https://community.arm.com/thread/76472?ContentTypeID=1</link><pubDate>Wed, 09 Jul 2008 01:58:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b7d7e6f5-3409-442b-b94e-70dbdd19605e</guid><dc:creator>Nag Mani</dc:creator><description>&lt;p&gt;&lt;p&gt;
example code:&lt;/p&gt;

&lt;p&gt;
#include&amp;lt;p89v66x.h&amp;gt;&lt;br /&gt;
#include&amp;lt;sbc.h&amp;gt;&lt;/p&gt;

&lt;p&gt;
xdata unsigned char *c =&amp;quot;ELECT&amp;quot;;&lt;/p&gt;

&lt;p&gt;
void main()&lt;br /&gt;
{&lt;/p&gt;

&lt;p&gt;
init_lcd(); AUXR = 0x03; while(1) { write(0x80,0); printlcd(c);
}&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
Actual project code I am not giving here, but for clarifying my
doubt am sending example code i.e displaying string of characters to
16x2 LCD display. The above code is working without XDATA .But I need
1.2KB data memory.thats wat I want to use XDATA .Already I used
regulary for p89v51rd series.But I didn&amp;acirc;&amp;euro;&amp;trade;t face any
problem .Using p89v664 only problem coming.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with XDATA</title><link>https://community.arm.com/thread/51984?ContentTypeID=1</link><pubDate>Wed, 09 Jul 2008 01:28:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:67e6c652-a45c-442f-a409-a4632ff38b9d</guid><dc:creator>David McCauley</dc:creator><description>&lt;p&gt;&lt;p&gt;
Your struggle matches an issue I recall having on a project using
the P89C66x device. At the time I recorded these project notes:-&lt;/p&gt;

&lt;p&gt;
&amp;quot;The P89C66x has extended RAM which maps to XRAM but is not
enabled on boot. The EXTRAM bit of SFR AUXR (0x8E) needs to be
cleared.&amp;quot;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with XDATA</title><link>https://community.arm.com/thread/51981?ContentTypeID=1</link><pubDate>Wed, 09 Jul 2008 00:25:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7fb8f647-0d17-473d-8e21-d887772a1d8e</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Suggests that you sprinkle your post with more facts.&lt;/p&gt;

&lt;p&gt;
What isn&amp;#39;t working. How have you configured the project. What does
your code look like...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>