<?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>Avoiding startup initialization of variables</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/16406/avoiding-startup-initialization-of-variables</link><description> Hello all, 
My target is based on micro T89C51RD2 (with 64K flash, 1K RAM and 2K EEPROM), also in my target 32K SRAM and 8K EEPROM. 
I need that some values of some parameters will not bee initialized to zero after reset (not power down). I reed and</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Avoiding startup initialization of variables</title><link>https://community.arm.com/thread/110410?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2003 04:07:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:297da1a1-13ab-4d9a-9850-9e6786482162</guid><dc:creator>Ruven H</dc:creator><description>&lt;p&gt;Is it possible that RTXCONF.A51 and RTXSETUP.DSL influence the STARTUP.A51 settings?&lt;br /&gt;
Is there is a recommended order to put RTXCONF.A51, RTXSETUP.DSL, STARTUP.A51 and INIT.A51 in the project?&lt;br /&gt;
&lt;br /&gt;
Thanks a lot,&lt;br /&gt;
R.H&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoiding startup initialization of variables</title><link>https://community.arm.com/thread/110409?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2003 03:16:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a2c3f054-1833-4af6-b789-5e75c73d6820</guid><dc:creator>Ruven H</dc:creator><description>&lt;p&gt;Thanks a lot,&lt;br /&gt;
I&amp;#39;ll try to do so.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoiding startup initialization of variables</title><link>https://community.arm.com/thread/95609?ContentTypeID=1</link><pubDate>Tue, 08 Jul 2003 03:24:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f906ceba-93a9-491a-a6e6-2fe0fe37367c</guid><dc:creator>Keil  Support Intl.</dc:creator><description>&lt;p&gt;You should use the simulator and check what happens in the startup code.  From what you say everything seems correct (so you must make some other mistake).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoiding startup initialization of variables</title><link>https://community.arm.com/thread/71619?ContentTypeID=1</link><pubDate>Tue, 08 Jul 2003 02:10:07 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:75ea7e06-a06b-4300-a1a3-47b4e50d0dec</guid><dc:creator>Ruven H</dc:creator><description>&lt;p&gt;Hi again,&lt;br /&gt;
I solve the assembler error by writing zero before the number (0E3E0H instead of E3E0H).&lt;br /&gt;
Now I don&amp;#39;t receive any errors but the variable value is still initialized to zero after reset.&lt;br /&gt;
&lt;br /&gt;
Any more ideas?&lt;br /&gt;
Ruven.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoiding startup initialization of variables</title><link>https://community.arm.com/thread/71618?ContentTypeID=1</link><pubDate>Tue, 08 Jul 2003 00:55:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5b5482f1-8441-4d26-8d16-a5ebf195134a</guid><dc:creator>Ruven H</dc:creator><description>&lt;p&gt;Hi Erik,&lt;br /&gt;
Thanks for your respond.&lt;br /&gt;
I tried to change XDATALEN from 10000H to E3E0H (10000H-1C20H), now I receive assembling error:&lt;br /&gt;
STARTUP.A51(30): error A45: UNDEFINED SYMBOL (PASS-2)&lt;br /&gt;
When I double click this message uVision points on XDATALEN.&lt;br /&gt;
&lt;br /&gt;
P.S.&lt;br /&gt;
I don&amp;#39;t think it&amp;#39;s relevant to this case but I&amp;#39;m using the RTX-Full OS.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Roberto&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoiding startup initialization of variables</title><link>https://community.arm.com/thread/40508?ContentTypeID=1</link><pubDate>Mon, 07 Jul 2003 10:36:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1a9d6bbc-a98f-49f1-9c4c-4ec853005ff5</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;XDATASTART EQU 1C20H&lt;br /&gt;
XDATALEN EQU 10000H&lt;br /&gt;
Am I missing something?&lt;br /&gt;
&lt;br /&gt;
My guess is that the code wraps, so that you still clear all.  Set the length to 10000-1c20&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>