AR# 1950: Foundation: "File specified in $FILE parameter is missing" when pushing into macro
Foundation: "File specified in $FILE parameter is missing" when pushing into macro
Keywords: foundation, schematic, $file, macro
General Description: When pushing into a macro, Foundation may issue the following message:
File specified in $FILE parameter is missing
This error can occur when the macro comes from another project library and:
1. It is a schematic macro created by using the Symbol Wizard, or 2. It is an HDL macro (ABEL or VHDL).
When a macro is created under these conditions, the actual contents of the macro are stored in the project directory. Only the symbol graphic is stored in the project library.
To get rid of the error, copy the SCH/ABL/VHD file from the other project directory into the current project directory.
To avoid this problem with schematic macros, you can create macro symbols without using the Symbol Wizard:
1. Open a new schematic sheet and create the macro. 2. Select Hierarchy -> Create Macro Symbol From Current Sheet.
This will copy the contents of the schematic into the project library. Now the macro can be used in other projects without copying the SCH file.
If the macro comes from the current project library, this error means that the file containing the macro description is missing.
Verify that the $FILE attribute is pointing to the correct SCH, ABL, or VHD file by double-clicking on the symbol and looking at the symbol parameters.
If the $FILE attribute is correct, and the file is not present in the project directory, you can try to recover the file from automatic backup. Backup files have a BSC (schematic) or BAK (ABEL/VHDL) extension.
1. Using File Manager, Windows Explorer, or an MSDOS session, rename the BSC (or BAK) file to have an SCH (or ABL/VHD) extension. 2. In the Schematic Editor, push into the macro. Make edits if necessary to bring the macro contents up to date.