|
|||||||||||
Technical Support Support Resources
Product Information |
BL51: Warning 1 (Unresolved External Symbol) Using SBITsInformation in this article applies to:
QUESTIONI want to use a bit of Port P1 for a chip select line. I have declared the chip select as follows:
In a second module I need to access this SFR, so I declare it as an extern:
When I link, I receive the following linker error:
Where have I made a mistake? ANSWERUnfortunately, you can't declare sbits as extern. You must declare the sbit in each C file (or create a header file for it). Just include the SBIT definition you already have in each file. MORE INFORMATION
SEE ALSO
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.