Keil Logo

µ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: Tuesday, January 12, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.