7.20 compiler and 2006 default code

Why am I getting the " version of compiler supports only the PIC18F8520 processor" error when I compile the default code if I’m using the 2006 default code and the 7.20 IDE.

We want everything to work with the new 2006 controller.

The library file I have is the FRC_library_8722.lib file.

7.20 is the IDE version. Go to the command line, and type “mcc18 -v”. Mine reports “MPLAB C18 v2.40 Copyright 2000-2004 Microchip Technology Inc.”

I tried this but get ‘mcc18’ not recognized as a command from command line. ( This is a Win2000 laptop).
Where can I download C18 v2.40 compiler? _- or do I have to hunt down CD we got with kit of parts?

Thanks for your help!

Unfortunately, that’s what you have to do.

Erm, first go to the command line and make sure you’re in the mcc directory before typing “mcc18 -v” if you don’t know where it is, search for it on your computer and get the directory that way.

It should auto-configure the $PATH variable upon installation, works from any directory for me.

I’m not sure, but I believe that was optional. If I remember correctly, on the setup there were check boxes for options like that, but all were unchecked by default.

Isn’t there also the student version of the compiler online?

It’s been replaced with a student version of version 3, which isn’t compatible.

It is optional

Went to the mcc18 directory - didn’t see an mcc directory - typed command and still got error.

Thanks for your help. I’ll have to get a copy of c18 v 2.4 somehow - maybe find it!

You can also look at the README.C18 text file in the main mcc18 directory to find the compiler version, e.g.,
in C:/mcc18/README.C18


Release Notes for MPLAB(r) C18, PICmicro 18Cxx C compiler
v2.40
17 November 2004
----------------------------------------------------------------------
Table of Contents
----------------------------------------------------------------------

We had a similar error when we tried to use WPILib. I fixed this by installing MPLAB 7.31. It works fine with the MCC18 v2.40 compiler.
You can download it here.
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en019469&part=SW007002

I hope this fixes your problem.