<?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 add c files to project with start.s file</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/40232/problem-with-add-c-files-to-project-with-start-s-file</link><description> 
Can anyone say me please . Why when i add C file to project
created im MDK lite ARM micro vision .LPC2378 NXP Phillips board,
code starting run from c file. Code ignore LPC2300.s bootloader file
and start from not relevant place - c source file. If</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Problem with add c files to project with start.s file</title><link>https://community.arm.com/thread/81282?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2013 04:25:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1ac99178-233c-44eb-857b-28e3ed070daa</guid><dc:creator>Denis Konoplya</dc:creator><description>&lt;p&gt;&lt;p&gt;
If I start run code as it wrote in original boot loader file
LPC2300.s code start not from Vectors. So I wrote directive ENTRY
just after&lt;br /&gt;
AREA RESET, CODE, READONLY ARM ENTRY&lt;br /&gt;
and before&lt;/p&gt;

&lt;p&gt;
Vectors LDR PC, Reset_Addr LDR PC, Undef_Addr&lt;/p&gt;

&lt;p&gt;
And code now start correctly.&lt;br /&gt;
But after I Add some c file to project .compile result - No
errors&lt;br /&gt;
Start debug and code start from 0x0 of c file not boot loader.&lt;br /&gt;
precisely from __main:&lt;br /&gt;
0x00000000 EB000000 BL __scatterload(0x00000008)&lt;br /&gt;
0x00000004 EB000024 BL __rt_entry(0x0000009C)&lt;br /&gt;
Obviously map file is changed.&lt;br /&gt;
My question what I need to change in setting for start from proper
place - boot loader file ??&lt;br /&gt;
Thanks&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with add c files to project with start.s file</title><link>https://community.arm.com/thread/62011?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2013 06:38:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:85be744c-ef1a-4f02-9f63-f340f20d8433</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
More likely a failure to create the project properly, and have the
right segment/section directives in the startup.s to place the
vectors correctly.&lt;/p&gt;

&lt;p&gt;
You might care to review your .MAP file and a) confirm that
startup.o is included by the linker, and b) at what address the code
it contributes has been placed.&lt;/p&gt;

&lt;p&gt;
You might want to review some other working examples for your cpu
or board, and review the code there and the options/settings in the
metadata of the project.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>