![]() |
Generate_Pwms argument error in MPLAB
I get the following error when I try to compile even the raw default code:
Clean: Deleting intermediary and output files. Clean: Done. Executing: "C:\Program Files\Microchip\mcc18\bin\mcc18.exe" -p=18F8722 "ifi_startup.c" -fo="ifi_startup.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Executing: "C:\Program Files\Microchip\mcc18\bin\mcc18.exe" -p=18F8722 "ifi_utilities.c" -fo="ifi_utilities.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Executing: "C:\Program Files\Microchip\mcc18\bin\mcc18.exe" -p=18F8722 "main.c" -fo="main.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Executing: "C:\Program Files\Microchip\mcc18\bin\mcc18.exe" -p=18F8722 "user_routines.c" -fo="user_routines.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- G:\FRC\mplab project\user_routines.c:168:Warning [2066] type qualifier mismatch in assignment G:\FRC\mplab project\user_routines.c:192:Warning [2066] type qualifier mismatch in assignment G:\FRC\mplab project\user_routines.c:194:Error [1203] too few arguments in function call G:\FRC\mplab project\user_routines.c:219:Warning [2066] type qualifier mismatch in assignment G:\FRC\mplab project\user_routines.c:236:Warning [2066] type qualifier mismatch in assignment Halting build on first failure as requested. BUILD FAILED: Thu Feb 01 15:30:09 2007 It occurs here in User Routines.c, the first call to Generate_Pwms(): Code:
void Process_Data_From_Master_uP(void)Code:
void Hex_output(unsigned char temp); /* located in ifi_library.lib */I remember this same error from before and I got it compiled, but now I can't remember what I did or what was wrong. :'( |
Re: Generate_Pwms argument error in MPLAB
Also, what is done to pwms 13-16 that isn't done to the others? Other than the cpp functionality. And another error, although it might go away when the first one does, but it says
Error - processor types do not agree across all input files. while/after it hits the linker stage. This is what happens when I commented out the Generate_Pwms in user_routines.c and user_routines_fast.c. |
Re: Generate_Pwms argument error in MPLAB
Just a thought: have you tried rebuilding all? (the button next to "Make").
You probably have some old object (.o) files lying around. I think there's a batch file that will clean it up too. |
Re: Generate_Pwms argument error in MPLAB
I've rebuilt it many times, used the batch file, and completely replaced the code and rebuilt with no object files.
|
Re: Generate_Pwms argument error in MPLAB
Make sure that the compiler is passed the -D_FRC_BOARD and -D_LARGE_CODE options, to define the corresponding macros. I'm not sure how to do that in MPLAB, it should be in some configuration menu.
The error you are getting has nothing to do with IFI_Library.lib, which is only added statically at link time (not compile time). |
Re: Generate_Pwms argument error in MPLAB
The "raw, default code" will compile and link with no problems.
I would suggest that you uninstall and then re-install MPLAB and the C18 compiler. |
Re: Generate_Pwms argument error in MPLAB
haha this is a little late, but yeah, I just had to add those macro definitions. In MPLAB, go to Project>Build options>Project and add _FRC_BOARD and _LARGE_CODE under the c18 tab.
|
| All times are GMT -5. The time now is 18:13. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi