ARM Technical Support Knowledge Articles

AUTOMATICALLY RENAMING OBJECT FILES

Applies to: uVision (Version 1) IDE

Answer


Information in this article applies to:


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 uVision, 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.

Article last edited on: 2005-07-09 11:27:08

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential