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; }
can i write my own start up codes
Yes and no. Yes because the tools do indeed allow it, and no because if you had to ask, that pretty much proves you don't have what it takes to do it.
and librarys?
Yes. But it might still be rather spectacularly unwise to actually do so, depending on which libraries you're talking about.