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; }
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.