I did a simple program to light a led.
#define _XTAL_FREQ 19660800
#define USE_AND_MASKS
#include <xc.h>
#include <pic18f46k22.h>
#include <stdio.h>
#include <stdlib.h>
void main(void) {
TRISA=0;
PORTA=0;
PORTA=0x5A;
while (1)
{
}
}
I use a PIC18F46k22 and a XC8 compiler. The issue is that when I compile the program the compiler gives the message no chip name specified; use "PICC18 --CHIPINFO"
Do you know where is the problem?