Log in

View Full Version : Error in Compiling the Camera Code (B&W Version)


VetteSlick
19-01-2006, 09:05
Loaded everything in and clicked on the "BUILD ALL" and this is the error I got.

Executing: C\m18\bin\mcc18.exe" -p=18F8722 "camera.c" -fo= "camera.o"
-ou- -ot- -ob- -op- -or- -od- -opa- -nw=2066 -D_FRC_Board

This version of the compiler supports only the PIC18F8520 processor.

Halting Build

Any suggestions on this problem?

sciguy125
19-01-2006, 09:22
You'll have to either figure out how to change the target processor or use the new compiler. We wanted to run the code on last years controller, but we couldn't figure out how to change the processor. So, we used the new compiler which required that we use the new controller.

Mark McLeod
19-01-2006, 10:43
If you loaded the newest edition of MPLAB and the compiler, then it can be as simple as chosing:

Configure -> Select Device...
then picking PIC18F8722 from the pulldown.

But it sounds like you have an older C18 compiler limited to the 2004/2005 version of the RC.

Uberbots
19-01-2006, 14:18
You need to install the new MPLAB C18 compiler for PIC18F8722,
we had a problem with that, and wed thought the cmilers were the same (because they were both c18), but we were wrong. make sure you install the compiler thats included ont he new CD.

VetteSlick
19-01-2006, 18:57
Thanks guys.... I had to choose the PIC18F8520. Got rid of that error, now I'm getting "can't find stdio.h file". I'll try to figure this out. If you have any suggestions feel free to offer..... Thanks again....

Mark McLeod
20-01-2006, 10:02
You are missing the path setting for the mcc18 include files.

In MPLAB

Project -> Build Options... -> Project

You'll see "Include Path" on the pop-up, just set it to
C:\mcc18\h

or click Browse and it usually is already there.

Matt Krass
20-01-2006, 17:55
Keep in mind that code compiled for the 8520 will not run on the new controller, only 2004/2005, so if you want to use the new controller you'll have to update your compiler with the CD included in the kit.

Astronouth7303
20-01-2006, 20:50
Keep in mind that code compiled for the 8520 will not run on the new controller, only 2004/2005, so if you want to use the new controller you'll have to update your compiler with the CD included in the kit.

Or if you're using the compiler from last year, change the processor and recompile everything. (Last year's download included the PIC18F8722 headers and libs.)