Hello everyone: I'll be highly appreciated if anyone of you can help me to clarify the following error message which have bothered me for the past two weeks. User command #2 E:\work\copy_bin.bat --- User Command terminated, Exit-Code = 4 ".\obj\product" - 1 Error(s), 140 Warning(s) The builded binary file is working properly. I just want to know the root cause of this kind of error message. I do have a file named copy_bin.bat, but it is empty and I could find from which method or file it is called. Thanks. Eric
Yuncheng Lin wrote: "I do have a file named copy_bin.bat, but it is empty" Are you sure? I don't see how it could return an Exit Code of 4 if it really is empty! "from which method or file it is called." Look on the 'Output' tab of the uVision Project options - there are two 'Run User Program' boxes at the bottom. I tried adding an empty batch file, and got a return value of 1 BTW: Who's Eric?
Thank you for your kindly recommendation. My problem has been solved now. Yes, you are right. The Exit Code should be 1 if the calling file is really empty. It was my wrong typing. BTW:Eric is another name of Yuncheng Lin. Thanks again. Yuncheng Lin