I dont know how to solve this problem, because in my school I dont have this problem, and I use the same code. Even when I use Default Code, it doesnt work at my home.
Im new to the FIRST competition, so i dont know the MPLAB well yet, so anyone can help me here…?
Wow, weird. It’s trying to pass a .O file to the COFF reader? Hmm…try a clean build–delete all .O files from the directory and try again. After that, if it was me, I’d re-install MPLAB.
I’ll backup Chris on his answer.
That error message indicates that at home you are using a Microchip compiler later than the c18 v2.4 we are using for FIRST. You must use the same compiler version you have at school. It was sent to your team on a CD in the Kit-Of-Parts.
You cannot use the latest version of the Microchip compiler, because it is incompatible with the ifi libraries compiled under the older v2.4.
Maybe… Because at school I have MPLAB IDE 7.20, and at home its 7.30.
I had a problem with my C18 Compiler so I took the compiler from school (on a flash disk) and I put it at home.
At school i use code v2.2, and at home too… Do you think that my problem is different versions…? at school i could load a 2.4 code with MPLAB IDE 7.20…
thanks
You’re referring to the version of the IDE, which is just the nice interface. You need to worry about the compiler, which is version 2.4 or 3.x. The 3.x won’t work with FIRST code, and seems to be the version you have at home. The 2.4 version is what you have at school, and does work with FIRST code.
You’ll need either the original installation disk or to copy the c:\mcc18 directory (that’s the install location, by default, of the MPLAB C18 compiler).
The error message you saw means the the compiler version you’re running at home (copied from school) isn’t the same version as the libraries you’re pulling in from mcc18/lib.
Could be because you didn’t take the whole mcc18 directory from school as Cjmovie suggested, or could be because MPLAB is pointing to parts of your original home C18 directory or your original C18 compiler.
To check the latter:
– look in MPLAB under Project->Build Options->Project and see if the directory paths listed there point to the correct C18 version.
– look in MPLAB under Project -> Select Language Toolsuite to see if each of the directory paths for every tool is where it should be.
I believe you get download a student version of C18 complier v2.4 from www.microchip.com, but i haven’t looked for it. You just need to make sure that is is v2.4.
it works now, but something is weird:
When I installed it on D drive it didnt work, It says that it couldnt find the file clib.lib… But now it’s installed on C drive it wroks… anybody knows the reason?
As Mark said above you would have to direct MPLAB to look for the C18 header files in a different location not the default c:\mcc18
– look in MPLAB under Project->Build Options->Project and see if the directory paths listed there point to the correct C18 version.
– look in MPLAB under Project -> Select Language Toolsuite to see if each of the directory paths for every tool is where it should be.