<?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>STARTUP.A51</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/20304/startup-a51</link><description> I&amp;#39;ve created my own Startup file to be used that calls 
 cseg at 0 
along with many other things. But when I run the compiler, it pulls in 
 cseg at 0 
from the pre-made STARTUP.A51 file contained in the library. Since I have already initialized cseg</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: STARTUP.A51</title><link>https://community.arm.com/thread/112170?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2006 10:12:58 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8bafa476-8047-447c-8d65-0a12788c5973</guid><dc:creator>Dan  Johnson</dc:creator><description>&lt;p&gt;Ok. Thank you. I was missing a small part of that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STARTUP.A51</title><link>https://community.arm.com/thread/98185?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2006 09:44:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a14b904d-1a58-4241-9fc1-b32c4a78db35</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;if the modified startup does not have the entry label and exit call you will get &amp;quot;startup missing&amp;quot; in commandline mode.&lt;br /&gt;
&lt;br /&gt;
I guess in the IDE mode that would make the standard get included.&lt;br /&gt;
&lt;br /&gt;
I imagine this is the part required:&lt;pre&gt;?C_C51STARTUP    SEGMENT   CODE
CSEG       AT    0
?C_STARTUP:
           ljmp    ?C_START

           end&lt;/pre&gt;Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STARTUP.A51</title><link>https://community.arm.com/thread/74129?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2006 08:09:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:62a751af-b91a-4abe-86af-6085cdb8d62f</guid><dc:creator>Dan  Johnson</dc:creator><description>&lt;p&gt;I&amp;#39;ve only included my startup file and not the sample. But it still overlaps at 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STARTUP.A51</title><link>https://community.arm.com/thread/46238?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2006 17:09:40 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4e91954b-6875-413d-a871-a4091bcb341b</guid><dc:creator>Drew Davis</dc:creator><description>&lt;p&gt;cseg isn&amp;#39;t a variable or a function to be called.  It&amp;#39;s an assembler directive that sets internal state in the assembler while it is assembling.  In this case, it sets the start address of the current code segment.&lt;br /&gt;
&lt;br /&gt;
Naturally, you can have only one chunk of code that starts at location zero.&lt;br /&gt;
&lt;br /&gt;
If you want to have your own startup code, you just include your version of the STARTUP.A51 file in the file list of your uV2 project (and don&amp;#39;t include the sample version, so that there&amp;#39;s only one).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>