Keil™, An ARM® Company

Technical Support

µVISION1: AUTOMATICALLY RENAMING OBJECT FILES


Information in this article applies to:

  • µVision Version 1

QUESTION

My emulator software requires the extension '.omf' on the absolute object file (OMF-51 file). Is there a way the extension can be added to the file automatically every time I build my project?

ANSWER

This is very simple to achieve.

  1. Create a batch file in your project folder called 'rename.bat' with the following line (this example assumes the object file produced is called 'foo'):
    rename foo foo.omf
    

    Replace 'foo' with the filename of your object file.

  2. In µVision, choose 'Make...' from the Options menu and click on the 'After Make' tab.
  3. Check 'Run User Program 1' and click on the Browse button to choose rename.bat, which you have just created.
  4. Click on the OK button.

When you next build your project, the batch file will be executed after the object file has been created, thus renaming it. Note that you will have to close the DOS window each time.

Last Reviewed: Saturday, July 09, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure