We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am trying to write a program for cypress FX2 chip. But I am getting the following warnings:
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: USBIE MODULE: ex1.obj (EX1) *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: USBIE MODULE: ex1.obj (EX1) ADDRESS: 0807H
I have declared the header files containing the USBIE. USBIE is defined in the header file as
EXTERN xdata volatile BYTE USBIE _AT_ 0xE65C; // USB Int Enables
What am I missing. The example files I have seen do not have any other include files.
Take a look at:
http://www.keil.com/support/man/docs/c51/c51_le_absvarloc.htm
Jon
Jon, I don't understand what's wrong. The declaration seems to be fine.
I don't understand what's wrong
Have you actually read the linked article? Pay close attention to the paragraph about external declarations.
have you noticed the difference EXTERN vs extern This is the way how cypress does the things to avoid multiple declarations.
see also http://www.keil.com/forum/docs/thread8030.asp
Thomas
Actually, it's to avoid multiple definitions
c-faq.com/.../decldef.html