Wond3rboy
Member
Hi i have been working on getting my C cells reved up but i cant get this simple program to build.
I have included p18f1320.h, delays.h,c018i.o,18f1320_g.lkr.But this is the error i get when i build it, this is the error i get:
I cant get whats wrong. Got the same error with the LED example code in the C18 directory and with 3V0's LED tutorial.
Code:
// This is a Knight Rider Program
# pragma config LVP=OFF,WDT=OFF,OSC=INTIO2,DEBUG=ON
# include<P18f1320.h>
# include<delays.h>
void main(void)
{
OSCCON=0x60;
ADCON0=0X7F;
TRISB=0;
while(1)
{
near unsigned char j=0x01;
LATB=j;
while(j!=0x80)
{
LATB=(j<<1);
Delay10KTCYx(100);
}
}
}
I have included p18f1320.h, delays.h,c018i.o,18f1320_g.lkr.But this is the error i get when i build it, this is the error i get:
----------------------------------------------------------------------
Debug build of project `E:\PIC Tutorials\Assembly\Projects MPLAB\CPRograms\NightRider.mcp' started.
Preprocessor symbol `__DEBUG' is defined.
Sat Jul 18 10:42:19 2009
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "E:\PIC Tutorials\Assembly\Projects MPLAB\CPRograms\knightrider.o".
Clean: Deleted file "E:\PIC Tutorials\Assembly\Projects MPLAB\CPRograms\NightRider.mcs".
Clean: Done.
Executing: "E:\MCC18\bin\mcc18.exe" -p=18F1320 "E:\PIC Tutorials\Assembly\My made\CPrograms\knightrider.c" -fo="knightrider.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "E:\MCC18\bin\mplink.exe" "..\..\..\..\MCC18\bin\LKR\18f1320_g.lkr" "knightrider.o" "E:\MCC18\lib\c018i.o" /u_CRUNTIME /u_DEBUG /z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /o"NightRider.cof" /M"NightRider.map" /W
MPLINK 4.32, Linker
Link step failed.
----------------------------------------------------------------------
Debug build of project `E:\PIC Tutorials\Assembly\Projects MPLAB\CPRograms\NightRider.mcp' failed.
Preprocessor symbol `__DEBUG' is defined.
Sat Jul 18 10:42:24 2009
----------------------------------------------------------------------
BUILD FAILED
I cant get whats wrong. Got the same error with the LED example code in the C18 directory and with 3V0's LED tutorial.