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

 
I write a C program in uvision3. I have a global vriable &amp;quot;byte
xdata *MemoryArea = (byte *)0x8000&amp;quot; and I define it in &amp;quot;flashdata.c&amp;quot;.
I have a function that use &amp;quot;MemoryArea&amp;quot;. This function define in
&amp;quot;mmngr.c&amp;quot;. In this function there is a local</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Problem with global variable</title><link>https://community.arm.com/thread/123697?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2007 21:31:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5c29b492-4ba5-4027-841d-80c7da286f61</guid><dc:creator>Jonny Doin</dc:creator><description>&lt;p&gt;&lt;p&gt;
... &amp;quot;day job&amp;quot;, &amp;quot;endless computer nights&amp;quot;, &amp;quot;please answer me right
now&amp;quot;. These are definitely antagonic activities.&lt;/p&gt;

&lt;p&gt;
Some of us must balance the heavy load of a few concurrent
projects in our &amp;#39;day jobs&amp;#39;, the research that said &amp;#39;day jobs&amp;#39; require
in the &amp;#39;home lab&amp;#39;, and a few hours of forum thread follow-up in the
meantime.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;anisotropy of timezones&amp;quot;&lt;/i&gt; That is an interesting geographic
effect indeed.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with global variable</title><link>https://community.arm.com/thread/112708?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2007 15:39:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:02f597a2-3e96-4364-bc0c-53f11722182a</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;sleep&amp;quot; .... do it for a good part of the day. &amp;quot;day
job&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Not a good combination according to my employer :)&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with global variable</title><link>https://community.arm.com/thread/98990?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2007 15:31:04 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:313da6dc-f005-4927-8be8-f668aa186301</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;what is problem that anybody don&amp;#39;t reply to me?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
It&amp;#39;s called &amp;quot;sleep&amp;quot;. Most people do it for a good part of the day.
And then there&amp;#39;s this other phenomenon, called a &amp;quot;day job&amp;quot;, which
keeps people off their private internet connections for almost longer
than &amp;quot;sleep&amp;quot; ;-)&lt;/p&gt;

&lt;p&gt;
BTW, is it just me, or does there appear to be a considerable
anisotropy in the distribution of timezones of people doing the
asking, and those doing the answering in this forum?&lt;/p&gt;

&lt;p&gt;
As to your question: one rather likely cause for that that problem
is incorrect treatment of declaration vs. definition of global
variables.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with global variable</title><link>https://community.arm.com/thread/98987?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2007 07:08:28 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8afdc009-7762-492b-a943-cd1bf53205ef</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
This is a discussion forum - it is not a consultancy service!&lt;/p&gt;

&lt;p&gt;
Do you really expect to receive free consultancy in under 2
hours?!&lt;/p&gt;

&lt;p&gt;
But yes, your post is hard to follow.&lt;/p&gt;

&lt;p&gt;
Why don&amp;#39;t you just post the smallest complete code sample that
illustrates your problem?&lt;/p&gt;

&lt;p&gt;
Be sure to follow the instructions for posting code:&lt;br /&gt;
&lt;a href="http://www.keil.com/forum/tips.asp"&gt;http://www.keil.com/forum/tips.asp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Be sure that your code compiles without errors or warning.&lt;/p&gt;

&lt;p&gt;
Explain what you expect the code to do, and what actually happens,
and what steps you have taken to explain the difference.&lt;/p&gt;

&lt;p&gt;
eg, have you tried it in the simulator?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with global variable</title><link>https://community.arm.com/thread/74888?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2007 06:09:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f4647a6b-a936-44dd-8cb7-b6b6b8f0c24d</guid><dc:creator>a a</dc:creator><description>&lt;p&gt;&lt;p&gt;
what is problem that anybody don&amp;#39;t reply to me? whether my
question is ambiguous ???&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with global variable</title><link>https://community.arm.com/thread/50485?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2007 02:03:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e573cc49-e92b-4ca3-8567-a41281320b02</guid><dc:creator>a a</dc:creator><description>&lt;p&gt;&lt;p&gt;
Is there anybody can help me. I need your help very much.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>