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

compiler issue

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

Parents Reply Children
  • 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?