Quote:
|
Originally Posted by Rickertsen2
Yes, i have some experience with the USARTs. What kind of sensors are you using?
|
We're trying to use a digital compass (available from Digikey) Honeywell model HMR3100. See the datasheet at:
http://www.magneticsensors.com/products.html
The ini_aliases.h header file has the following line:
#define usart2_RX PORTGbits.PORTG2
However, whenever I try to build the project with "usart2_RX" in my user code, I receive the following error:
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines.c" -fo="user_routines.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\EduCode\user_routines.c:328:Error [1205] unknown member 'PORTG2' in '__tag_43'
Does anyone know what "unknown member" or "__tag_43" means and how I can resolve this issue?