Hi there, My project is based on LPC2368 controller and Iam using the GCC compiler alongwith the Keil UVision3 IDE.
Is the startup.s file same for both Real View compiler and the GCC compiler ? If it is different please can you suggest me a download link for it. Where can i find more details about this file. (say in case if i need to modify.)
sorry we do not have a perpared startup file for GNU and the LPC2300 series. Just look at the GNU variant for the LPC2000 series and make the relevant changes.
Hi there, Is it possible to write program for ARM7(LPC2368) controller without the startup.s file ?
Actually, I have programmed the 8051 based controllers using Keil uVision2 IDE without using the startup.a51 file. Please give me your suggestions as Iam a novice regarding ARM based controllers.
I have programmed the 8051 based controllers using Keil uVision2 IDE without using the startup.a51 file.
That's probably untrue. What you likely did was program for the 8051 without knowingly using the startup file. But the tools noticed your project didn't contain a copy of this module, so they pulled in the default copy out of the library. You were lucky enough that this default version worked for you.
The startup file for LPC should have the following. 1) Interrupt Vector addresses. 2) Cloack setup(PLL / MAM config) (Optional can be put in C file also). 3) Stack intialization. 4) Memory intialisation / ZI data intialization.
Many of the things can be done in C file but you need to initialize the stack before calling any C functions.
Regards
Suvidh