<?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>DS5250 configuration</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/27656/ds5250-configuration</link><description> 
Hi All! 
Have a situation with dallas&amp;#39; DS5250: 
Keil configuration: 
Memory Model - Large variables in XDATA 
Code ROM size - Contiguous mode 512kB 
User segments: ?PR?MYFUNC?MYFUNC (C:140H) 

 
I&amp;#39;d like to reserve a data space in RAM1. Now, as it can</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: DS5250 configuration</title><link>https://community.arm.com/thread/139863?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2011 08:32:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:09c739e8-3d0f-407b-9ee8-db5694420f6e</guid><dc:creator>Indigo Indigo</dc:creator><description>&lt;p&gt;&lt;p&gt;
OK, I&amp;#39;ve uploaded the project:&lt;br /&gt;
&lt;a href="http://rapidshare.com/files/451410343/TESTER.rar"&gt;rapidshare.com/.../TESTER.rar&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
There is the Bird() function that located at RAM1 (address 0x80).
Please, can you create an array (for example, at address 0x120), with
length of 100 bytes?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DS5250 configuration</title><link>https://community.arm.com/thread/136403?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2011 07:49:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cb654573-636e-4c47-a52b-3f231553174e</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;I wrote in a project:&lt;/i&gt;&lt;/p&gt;

&lt;pre&gt;
uchar data innerdata[16];
&lt;/pre&gt;

&lt;p&gt;
&lt;br /&gt;
No, you cannot write that in a &lt;b&gt;Project&lt;/b&gt; - it must be in either
a &lt;b&gt;.c&lt;/b&gt; source file or a &lt;b&gt;.h&lt;/b&gt; header file.&lt;/p&gt;

&lt;p&gt;
So - what did you &lt;i&gt;actually&lt;/i&gt; do?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DS5250 configuration</title><link>https://community.arm.com/thread/139864?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2011 07:30:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:01dd7f14-0413-4bc9-88d7-a309add0d99e</guid><dc:creator>Indigo Indigo</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;How can you have multiple public definitions? Do you have the
variable in multiple C files?&lt;/i&gt;&lt;br /&gt;
I don&amp;#39;t have this variable in multiple C files. I&amp;#39;ve specially
wrote&lt;br /&gt;
?DT?YOUNGLADY?YOUNGLADY....&lt;br /&gt;
in the command line to avoid any random conflicts of names:) The
problem is in the syntax in the command line, I wrote something
wrong. Where can I find examples of declarations in the command
line?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DS5250 configuration</title><link>https://community.arm.com/thread/136404?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2011 07:18:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dddbd3fc-9b5d-461f-a030-324ce1d47082</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
&amp;quot;I do something wrong.&amp;quot;&lt;/p&gt;

&lt;p&gt;
Yes. You have selected the &amp;quot;trial and error&amp;quot; methodology. It is
known to produce long sequences of failures.&lt;/p&gt;

&lt;p&gt;
How can you have multiple public definitions? Do you have the
variable in multiple C files? Or did you add your line in a header
file, resulting in one copy of the variable for every C file
including that header file?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DS5250 configuration</title><link>https://community.arm.com/thread/126718?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2011 06:13:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:966f88f7-b4df-4d67-94ea-3b4d19c6c5a4</guid><dc:creator>Indigo Indigo</dc:creator><description>&lt;p&gt;&lt;p&gt;
Now I&amp;#39;ve written DT instead of ID:&lt;br /&gt;
?DT?INNERDATA?INNERDATA (C:300H)&lt;br /&gt;
but the same error L110.&lt;br /&gt;
I understand, that Keil wants to see where I&amp;#39;ve declared the array
and how long is it. Thus, I wrote in a project:&lt;/p&gt;

&lt;pre&gt;
uchar data innerdata[16];
&lt;/pre&gt;

&lt;p&gt;
&lt;br /&gt;
Keil have changed error message, now it is :&lt;br /&gt;
ERROR L104: MULTIPLE PUBLIC DEFINITIONS&lt;br /&gt;
SYMBOL: INNERDATA,&lt;br /&gt;
this error for some reason (?) applied to all files in the
project.&lt;br /&gt;
I do something wrong.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DS5250 configuration</title><link>https://community.arm.com/thread/116277?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2011 05:56:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2221a827-9011-423d-8cc6-48458a2692d2</guid><dc:creator>Indigo Indigo</dc:creator><description>&lt;p&gt;&lt;p&gt;
MyFunc allocated on address 0x140, in the inner area, not on
0x1400, that is external area. I also tried:&lt;br /&gt;
?PR?MYFUNC?MYFUNC (C:80H),&lt;br /&gt;
and this works, also I saw in the debug mode where the MyFunc()
allocated, all is OK, it was on the 0x80 address.&lt;/p&gt;

&lt;p&gt;
Sorry I didn&amp;#39;t supplied additional information abot the RAM1 size,
because of I thought it is clear from the topic header &amp;quot;DS5250...&amp;quot;.
DS5250 has RAM0, RAM1 1024 Bytes length.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DS5250 configuration</title><link>https://community.arm.com/thread/116276?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2011 05:47:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8c41543a-f85d-4e33-a26f-b519ad82fef1</guid><dc:creator>Indigo Indigo</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes, I have the &amp;quot;My Func()&amp;quot;, mapped to RAM1. RAM0 used for
user-loader mode. Beginning of RAM1 contains interrupt vectors,
MyFunc(). I want to have a data array in the RAM1 also. I can make a
code in the RAM1, but if I try to place in the LX51 Locate, User
Segments:&lt;/p&gt;

&lt;p&gt;
?ID?INNERDATA?INNERDATA (C:300H),&lt;/p&gt;

&lt;p&gt;
I have the error:&lt;br /&gt;
ERROR L110:&lt;br /&gt;
CANNOT FIND SEGMENT&lt;br /&gt;
SEGMENT: ?ID?INNERDATA?INNERDATA&lt;/p&gt;

&lt;p&gt;
Earlier I tried another declaration and got error &amp;quot;memory
overlaped&amp;quot;&lt;/p&gt;

&lt;p&gt;
I cannot understand what does compilator require else?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DS5250 configuration</title><link>https://community.arm.com/thread/104666?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2011 05:24:18 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:03dd881d-4e11-4f26-bc51-3b23039c1fd8</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Doesn&amp;#39;t your C:140H indicate offset 0x0140H in the &amp;quot;code&amp;quot; segment?
Would &amp;quot;C:&amp;quot; as prefix really indicate an overlap with RAM1?&lt;/p&gt;

&lt;p&gt;
And why do you think it good to duplicate the information from the
first post, instead of sitting down and pondering if there may be
information you did _not_ supply in that first post. Such as what
RAM1 is. Or relevant information from a produced map file. How do we
know that RAM1 is a memory region that is even big enough to fit a
256 byte array?&lt;/p&gt;

&lt;p&gt;
If you do look at your posts even closer, you might even notice
that you talk about some error messages but you have never actually
copied and pasted these error messages into any of your posts.&lt;/p&gt;

&lt;p&gt;
You are still living the &amp;quot;my car doesn&amp;#39;t work - what is wrong&amp;quot;
life. You really do have to supply some more information for anyone
to be able to help. Yes, I do know there is a huge probability that
if you do make a post with too much well-selected information, you
may actually happen to solve the problem yourself. But that is a risk
you just have to take.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DS5250 configuration</title><link>https://community.arm.com/thread/104661?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2011 05:08:22 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7705315d-85d3-4242-922e-7a6c6990d037</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;It can be seen that I use a part of RAM1...&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
No, it can&amp;#39;t - because you haven&amp;#39;t said what &amp;quot;RAM1&amp;quot; is!&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;...from address 0x140 for a function&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
So you have some RAM mapped into code space?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DS5250 configuration</title><link>https://community.arm.com/thread/79096?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2011 04:36:37 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6dbc9a27-ac8a-4620-a788-541c692a3ec5</guid><dc:creator>Indigo Indigo</dc:creator><description>&lt;p&gt;&lt;p&gt;
The configuration as above:&lt;br /&gt;
Keil configuration:&lt;br /&gt;
Memory Model - Large variables in XDATA&lt;br /&gt;
Code ROM size - Contiguous mode 512kB&lt;br /&gt;
User segments: ?PR?MYFUNC?MYFUNC (C:140H)&lt;/p&gt;

&lt;p&gt;
It can be seen that I use a part of RAM1 from address 0x140 for a
function. Function works well. But I cannot declape a DATA array. I
don&amp;#39;t know the sytax&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DS5250 configuration</title><link>https://community.arm.com/thread/66358?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2011 04:25:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4ddebecb-2ff2-4f36-bddd-86238acc5fe8</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
&amp;quot;Now, as it can be seen from configuration, [...]&amp;quot;&lt;/p&gt;

&lt;p&gt;
Seen from what configuration?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>