This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Regarding startup file

Hello, I written simple c program mention below by selecting the lpc2148 chip but not include its startup file in the project. when i run it will go in infinite loop. I also put the break point but i think its not coming to that execution line. Is it necessary to include startup file?
void main()
{ int a=2,b=3,c; c= a+b;
}

Parents Reply Children
  • Why the great debate to a simple problem? Just add the startup file to your project and compile it and, guess what? your code will startup. There's no need to start debating whether various processors can run 'C' code with/without it, they can't. End of.