|
|||||||||||
Technical Support Support Resources
Product Information |
A51: Error 45 (Undefined Symbol (Pass-2))Information in this article applies to:
SYMPTOMSI am trying to assemble the RTX51 Tiny configuration file CONF_TNY.A51. I open the file in µVision and click on the Compile button and I receive the following error message:
for the very last line of the file which is:
What is wrong with that line? I haven't modified the file in any way. CAUSENothing is wrong with the last line. What has happened is that the assembler has gone through the entire file looking for the definition of a symbol. It has reached the last line and still not found the definition. The assembler then generates the error and it appears that the cause is the last line because that is where the assembler stopped. RESOLUTIONTo find out which symbol or symbols caused the problem you need to look at the symbol table in the generated .LST listing file:
Here you can see that all the symbols except for EA have been defined. You would then need to go through and figure out why the symbol wasn't defined. The definition may have been left out or mistyped. In this case EA is not defined in the CONF_TNY.A51 file and isn't supposed to be. Choose A51 Assembler from the Options menu and click on the Object tab. There is an option to Define 8051 SFRs. Check this option and rebuild the CONF_TNY.A51 file. RTX51 Tiny requires that the 8051 SFRs are defined by the assembler. That's why this directive is required. EA will now be defined as can be seen in the new symbol table:
MORE INFORMATION
Last Reviewed: Thursday, February 25, 2021 | ||||||||||
|
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.