# include <xc.h>
#pragma config FOSC = INTRCIO // Oscillator Selection bits (INTOSC oscillator: I/O function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN)INTOSC 振荡器, RA4、RA5为IO口
#pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT enabled)看门狗开
#pragma config PWRTE = ON // Power-up Timer Enable bit (PWRT enabled)上电复位开
#pragma config MCLRE = OFF // RA3/MCLR pin function select (RA3/MCLR pin function is digital I/O, MCLR internally tied to VDD)RA3/MCLR引脚功能为MCLR
#pragma config BOREN = OFF // Brown-out Detect Enable bit (BOD enabled)欠压检测功能关
#pragma config CP = OFF // Code Protection bit (Program Memory code protection is disabled)程序存储器代码保护被禁用
#pragma config CPD = OFF // Data Code Protection bit (Data memory code protection is disabled)数据代码保护关
//__ CONFIG(0X31A4);
__EEPROM_DATA(5,50,67,6,5,0,0,0); //0X00第一位表示定时倍数;0X01第二位表示最低电压-低;0X02第三位表示最高电压-高;0X03第四位表示清虫天数记录;0X04第五位表示清虫天数预设;0X05第五位表示为0铅酸电池(最低不能低于2点几V)、为1锂电池(最高不能超过12.6V);0X06空;0X07空
#define uchar unsigned char
#define uint unsigned int
while (1) //死循环
{
}
}
----------------------------------------------------------------------------------------
以上是我写的代码,可是编译时出现以下报错
:: warning: (1273) Omniscient Code Generation not available in Free mode
adcshili.c:421: warning: (752) conversion to shorter data type
D:\XC8\sources\common\lwdiv.c:31: error: (1358) no space for _eeprom_read temps (1)
(908) exit status = 1
nbproject/Makefile-default.mk:131: recipe for target 'dist/default/production/ADCshili.X.production.hex' failed
make[2]: Leaving directory 'D:/MPLAB X IDE v4.05��Ŀ/ADCshili.X'
nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'D:/MPLAB X IDE v4.05��Ŀ/ADCshili.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make[2]: *** [dist/default/production/ADCshili.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2