We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hello all, i have one arm7 kit of lpc2148. and one IDE is provided with it, its name is SCARM, i have written one simple program of led on-off in SCARM and downloaded it and it is working fine. When i wrote the same program in keil, and i included its header file and startup file. compilation is successful.but when i downloaded the file in same board it is not responding. i want to solve this problem. is it because of startup file or something else? and i want to use keil as SCARM code size is restricted to only 2Kbyte. pls help me thank you
hello andrew neil are you there?
hello all, pls help me in startup file thank you
Why do you insist that it's the startup file?
Have you actually read anyhing that I've said to you so far? Have you read the articles that I linked?
Have you spent any time debugging your code?
Keil provide plenty of "blinky" examples - have you looked at any of those?
hello sir, thanx for your reply. and problem was in startup file only. and i am using board of other company and developing code on keil. so i disabled the PLL,MAM,VPBDIV functions in startup file. i added target.c file to my project and now simple program of led blinking is working. thanks for your help and i saw the links mentioned by you. but my problem was not related to these links. thanks for your help and support. regards
How do you know that?
What, exactly, was the problem?
Maybe not this time - but do you now understand the issues?
Do you now understand how compiler optimisation could break such code? (in fact, compiler optimisation is likely to break such code!)
Do you now understand how to write code that will not be broken by compiler optimisation?