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 ?
The KEIL support page here ...
... 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.)