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.
Hi,
I am using a code analysis tool that invokes uVision to perform a project build from the command line. The build completes successfully but uVision always exits with code 1, causing the tool to complain. Why doesn't uVision exit with code 0 when successful ?
Thanks
The KEIL support page here ...
https://www.keil.com/support/man/docs/uv4/uv4_commandline.htm
... suggests that the exit code is 0 when there are no errors or warnings.
If you are seeing a 1, does the project build OK but with warnings?
Thanks. I discovered this shortly after posting my message. My project does have compiler warnings (mainly from 3rd party components such as mbedTLS) so this is why. Ideally I would like to leave warnings switched on but suppress exit code 1 but this does not seem possible.
Run a batch file instead? (That contains the Keil compilation and then returns 0.)