Keil™, An ARM® Company

Technical Support

A51: DUPLICATE DECLARATION IN INCLUDE FILE

QUESTION

When I include the REG552.INC file in my A51 Assembler program, I get a redefinition error. What's wrong?

ANSWER

The basic 8051 SFRs are predefined by the A51 Assembler. When you include a file that re-defines them, you must use the NOMOD51 directive to force the assembler to exclude the predefined names.

Last Reviewed: Saturday, May 08, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure