Hi all,
When i debug the program, following errors come out:
Executing: "C:\Program Files\HI-TECH Software\PICC\9.81a\bin\picc.exe" --pass1 "C:\Users\Teo Yu Xiang\VIP\PIC Program Testing\test02.c" -q --chip=16F877A -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Executing: "C:\Program Files\HI-TECH Software\PICC\9.81a\bin\picc.exe" -otest02.cof -mtest02.map --summary=default --output=default test02.p1 --chip=16F877A -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.81a
Copyright (C) 2011 Microchip Technology Inc.
(1273) Omniscient Code Generation not available in Lite mode (warning)
Error [1347] ; 0. can't find 0xCD words (0xcd withtotal) for psect "text572" in segment "CODE" (largest unused contiguous range 0xB3)
Error [1347] ; 0. can't find 0xBD words (0xbd withtotal) for psect "text561" in segment "CODE" (largest unused contiguous range 0xB3)
Error [1347] ; 0. can't find 0x96 words (0x96 withtotal) for psect "strings" in segment "STRING" (largest unused contiguous range 0x82)
Error [1347] ; 0. can't find 0x6E words (0x6e withtotal) for psect "text576" in segment "CODE" (largest unused contiguous range 0x45)
Error [1347] ; 0. can't find 0x5C words (0x5c withtotal) for psect "text577" in segment "CODE" (largest unused contiguous range 0x45)
Error [1347] ; 0. can't find 0x4E words (0x4e withtotal) for psect "text579" in segment "CODE" (largest unused contiguous range 0x45)
Error [1347] ; 0. can't find 0x49 words (0x49 withtotal) for psect "cinit" in segment "CODE" (largest unused contiguous range 0x45)
Error [1347] ; 0. can't find 0x3C words (0x3c withtotal) for psect "text571" in segment "CODE" (largest unused contiguous range 0xE)
Error [1347] ; 0. can't find 0x30 words (0x30 withtotal) for psect "text581" in segment "CODE" (largest unused contiguous range 0xE)
Error [1347] ; 0. can't find 0x27 words (0x27 withtotal) for psect "text565" in segment "CODE" (largest unused contiguous range 0xE)
Error [1347] ; 0. can't find 0x21 words (0x21 withtotal) for psect "text575" in segment "CODE" (largest unused contiguous range 0xE)
Error [1347] ; 0. can't find 0x20 words (0x20 withtotal) for psect "text570" in segment "CODE" (largest unused contiguous range 0xE)
Error [1347] ; 0. can't find 0x1D words (0x1d withtotal) for psect "text567" in segment "CODE" (largest unused contiguous range 0xE)
Error [1347] ; 0. can't find 0x19 words (0x19 withtotal) for psect "text568" in segment "CODE" (largest unused contiguous range 0xE)
Error [1347] ; 0. can't find 0x19 words (0x19 withtotal) for psect "text569" in segment "CODE" (largest unused contiguous range 0xE)
Error [1347] ; 0. can't find 0x14 words (0x14 withtotal) for psect "text566" in segment "CODE" (largest unused contiguous range 0xE)
Error [1347] ; 0. can't find 0x10 words (0x10 withtotal) for psect "text580" in segment "CODE" (largest unused contiguous range 0xE)
Error [500] ; 0. undefined symbols:
_i2c_rtc_set_date(test02.obj) _uc_i2c_rtc_get_day(test02.obj) _uc_i2c_rtc_get_date(test02.obj) _uc_i2c_rtc_get_year(test02.obj) _uc_i2c_rtc_get_month(test02.obj) _uc_i2c_rtc_get_hours(test02.obj) _i2c_rtc_set_hours(test02.obj) _i2c_rtc_set_minutes(test02.obj) _i2c_rtc_set_month(test02.obj) _i2c_rtc_set_seconds(test02.obj) _uc_i2c_rtc_get_seconds(test02.obj) _uc_i2c_rtc_get_minutes(test02.obj) _i2c_rtc_set_day(test02.obj) _i2c_rtc_initialize(test02.obj) _i2c_initialize(test02.obj) _i2c_rtc_set_year(test02.obj)
********** Build failed! **********
Does anyone encounter this problem before? how to solve it?
I am using PIC16F877A with LM35, temperature sensor, LCD, PIR sensor, 2 PWM outputs, and RFID reader. I tried write the program separately as 1 main program with :
#include "i2c.h"
#include "i2c_rtc.h"
#include "lcd_disp.c"
#include "functions.c"
and put some variables in local functions, but still cannot work.
Please help. Thanks a lot.