Keil Logo

µVISION: SOURCE BROWSER PROBLEMS WITH OBJECT DIRECTORY


Information in this article applies to:

  • C166 Version 4.06
  • C51 Version 6.02
  • µVision Version 2.06

SYMPTOMS

I am using µVision and trying to use the source browser. The source browser works OK when I select the Browse Information check box in the Output tab of the Project Options.

However, when I select a directory to use for my object files AND when I enable Browse Information, µVision responds with the following error message...

Can't open file 'C:\KEIL\C51\EXAMPLES\TEST\TESTCODE'

What's wrong?

CAUSE

When you select a directory for your object files, µVision puts the OBJ files as well as the absolute object file created by the linker in that directory.

The problem here is that the source browser is not looking in that directory. This is a problem that will be corrected in a subsequent release. Check http://www.keil.com/update/ for the latest updates.

RESOLUTION

One work-around for this problem is to specify the path for the executable that is generated. If you place the executable file (the output from the linker) in the project path, the source browser will be able to find it.

If your project path is: C:\KEIL\C51\EXAMPLES\TEST\

And, if your obj file path is: C:\KEIL\C51\EXAMPLES\TEST\OBJ\

Then, enter the following path for the Name of Executable in the Output tab of the Project Options: ..\TESTCODE

This assumes that your output file is named TESTCODE.

SEE ALSO

Last Reviewed: Tuesday, June 29, 2004


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.