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

Command Line to compile the project

Hi,

I am trying to write a script to compile my code (organized in a project) using CA51 Compiler Kit (uVision2).
Can somebody let me know how this can be done. I am able to compile individual files, but not the complete project.

Regards
Piyush

  • I am trying to write a script to compile my code (organized in a project) using CA51 Compiler Kit (uVision2).
    Can somebody let me know how this can be done

    I know I am old fashioned, but have you considered reading the manual? notably the getting started guide.

    Correction: not "reading the manual" but "working through the manual, actuall doing the examples".

    Yes, I AM old fashioned, I know, I suggest you start at the beginning.

    Erik

  • Why do you need to do this?
    Knowing what you're actually trying to achieve will help people to give you appropriate suggestions

    You can run uVision from the command line, and have it buid your project - but, not knowing what you're actually trying to achieve, I don't know if that's useful to you.

    Other than that, this is beyond the scope of the Keil tools - you will have to use some "external" scheme such as a makefile (if you want detailed control) or a .BAT file if you just want a simple Compile everything and then Link.

    Note that uVision shows you the command line corresponding to its selected options in the Project dialogue somewhere...