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 it is a bug or i need change something in setting?? Thanks
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.
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.
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.
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 AREA RESET, CODE, READONLY ARM ENTRY and before
Vectors LDR PC, Reset_Addr LDR PC, Undef_Addr
And code now start correctly. But after I Add some c file to project .compile result - No errors Start debug and code start from 0x0 of c file not boot loader. precisely from __main: 0x00000000 EB000000 BL __scatterload(0x00000008) 0x00000004 EB000024 BL __rt_entry(0x0000009C) Obviously map file is changed. My question what I need to change in setting for start from proper place - boot loader file ?? Thanks