<?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>Why this program can not run correctly?</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/14582/why-this-program-can-not-run-correctly</link><description> /* 
Following is a piece of program that I want the two tasks call the same function &amp;#39;CommonTask&amp;#39;. But either running on Keil UV2 or other simulators it always runs incorrectly to an unexpected code address. 
What&amp;#39;s wrong with it? 
*/ 
 
#include &amp;lt;reg52</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Why this program can not run correctly?</title><link>https://community.arm.com/thread/38104?ContentTypeID=1</link><pubDate>Tue, 04 Dec 2001 09:57:07 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:effd02b4-ed9c-47bc-b802-341dadf57e49</guid><dc:creator>Keil  Support Intl.</dc:creator><description>&lt;p&gt;RTX51 Tiny uses all the memory on the on-chip up till RAMTOP.  If you are using reentrant functions in the small memory model this will overwrite by default the RTX51 Tiny stack.  You need to specify a different RAMTOP for RTX51 Tiny in this case to have some reentrant stack available.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>