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.
for my current work, I wanna know if there is a way to build one UV2 project from command prompt. with my experience on using other embedded development tools, I know some provider ships particular tools for this target with its development kit. such as some tool can generate a makefile for your project, then you can build the project from command prompt just with calling of make tools. now, I wanna know if there is a way to work with UV2 project just like this?
Yes - it is described in the manual! See "µVision 2 Command Line Invocation" in the uVision Getting Started guide
yes, I read the information, only one page for building a particular project, right? but I failed. I failed to build both my working project and keil's sample project (such as Hello project). I just call uv2 like this:
uv2 -b hello.uv2
"yes, I read the information" So why didn't you say so?! ;-) It does work - I've tried it! (I've added items to my Explorer Context menu, so I get options to 'Build' or 'Make' as well as 'Open' when I right-click a .uv2 file)
Where do you type that command? I just type it in the hello project's directory. and I have reset my PATH environment variable, then I can call uv2.exe anywhere. as what I said, after I opened hello.uv2 project from UV2 GUI, I can open hello project from command prompt with this line:
uv2 hello.uv2
in truth, I do not think I do wrong usage. I just run it following the mannual strictly. I think maybe there is something wrong with the software product or my environment settings. I use uVision2 V2.20a, and I only installed C51 Compiler Tools on my local PC (I think it should be enough). how do you think about it?
and I just installed a fresh copy of uVision2 on another test PC of my team, I got the same result. both these two PCs are running window2000 professional (English version). same version of uVision2.
"if I add '-b' argument into this line, it still can not build this project" Try this instead:
uv2 -b .\hello.uv2
Great! It WORKS now! :) thank you very much! =)