Problem med microC - too many params
Postat: 8 oktober 2009, 09:51:48
har lite problem med microC
när jag trycker på build så spottar den ut felmedelanden som jag har försökt hitta en lösning på i 4 dagar
de är den PIC 18F2550
å en grafisk display från Kjell&C
koden är
unsigned char const start_img[1024] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,252,252,252, 12,
12, 12, 28,252,248,240, 0, 0, 0, 0,128,128,192,192,192,192,
192,128, 0, 0, 0,192,192,192,128,192,192,192,192,192,128, 0,
0,192,192,248,248,248,192,192,192, 0,206,206,206, 0, 0, 0,
254,254,254, 0, 0, 12, 12, 12, 12,252,252,252, 12, 12, 12, 12,
0, 0, 0,252,252,252, 12, 12, 12, 12, 12, 12, 0, 0,192,224,
248,120, 28, 12, 12, 12, 12, 28, 24, 0, 0, 0,252,252,252, 0,
0, 0, 0, 0, 0,252,252,252, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,255,255,255, 6,
6, 14, 31,127,251,224,128, 0, 0, 62,255,255,205,140,140,140,
143,207,207, 0, 0,255,255,255,193,128,128,128,193,255,255, 62,
0, 0, 0,255,255,255,128,128,128, 0,255,255,255, 0, 0, 0,
255,255,255, 0, 0, 0, 0, 0, 0,255,255,255, 0, 0, 0, 0,
0, 0, 0,255,255,255,131,131,131,131,131,128, 0, 0, 31,127,
255,224,192,128,128,128,128,192,192, 0, 0, 0,255,255,255, 6,
6, 6, 6, 6, 6,255,255,255, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0,
0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1,
1, 1, 0, 0, 0, 31, 31, 31, 0, 1, 1, 1, 1, 0, 0, 0,
0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0,
225, 33, 33, 32, 0,160, 0, 0,128,129,129, 1,128,128,128,128,
128,128,128,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 MHz
ADCON1 = 15; //Gör portA digital
Glcd_Init(&PORTA, 1, 0, 2, 3, 4, 5, &PORTB); //Initiera displayen
Glcd_Fill(0); //Rensa displayen
Glcd_Image(start_img); //Visa bilden
while(1){
Glcd_Box(0,0,127,63,2); //Invertera bilden
delay_ms(3000); //Vänta 3 sekunder
}
}
felmedelandet är
0 1 mikroCPIC1618.exe -MSF -DBG -pP18F2550 -DL -O11111114 -fo8 -N"N:\Dokument\ReptilTECH\reptiltech.mcppi" -SP"C:\Program Files (x86)\Mikroelektronika\mikroC PRO for PIC\defs\" -SP"C:\Program Files (x86)\Mikroelektronika\mikroC PRO for PIC\uses\P18\" -SP"N:\Dokument\ReptilTECH\" "reptiltech.c" "__Lib_Math.mcl" "__Lib_MathDouble.mcl" "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_I2C_b10.mcl" "__Lib_USB_genHID.mcl" "__Lib_GlcdFonts.mcl" "__Lib_Glcd.mcl"
0 125 All files Preprocessed in 31 ms
0 121 Compilation Started reptiltech.c
77 313 Too many actual parameters reptiltech.c
0 102 Finished (with errors): 08 okt 2009, 09:49:19 reptiltech.mcppi
och rad 77 är Glcd_Init(&PORTA, 1, 0, 2, 3, 4, 5, &PORTB); //Initiera displayen
när jag trycker på build så spottar den ut felmedelanden som jag har försökt hitta en lösning på i 4 dagar
de är den PIC 18F2550
å en grafisk display från Kjell&C
koden är
unsigned char const start_img[1024] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,252,252,252, 12,
12, 12, 28,252,248,240, 0, 0, 0, 0,128,128,192,192,192,192,
192,128, 0, 0, 0,192,192,192,128,192,192,192,192,192,128, 0,
0,192,192,248,248,248,192,192,192, 0,206,206,206, 0, 0, 0,
254,254,254, 0, 0, 12, 12, 12, 12,252,252,252, 12, 12, 12, 12,
0, 0, 0,252,252,252, 12, 12, 12, 12, 12, 12, 0, 0,192,224,
248,120, 28, 12, 12, 12, 12, 28, 24, 0, 0, 0,252,252,252, 0,
0, 0, 0, 0, 0,252,252,252, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,255,255,255, 6,
6, 14, 31,127,251,224,128, 0, 0, 62,255,255,205,140,140,140,
143,207,207, 0, 0,255,255,255,193,128,128,128,193,255,255, 62,
0, 0, 0,255,255,255,128,128,128, 0,255,255,255, 0, 0, 0,
255,255,255, 0, 0, 0, 0, 0, 0,255,255,255, 0, 0, 0, 0,
0, 0, 0,255,255,255,131,131,131,131,131,128, 0, 0, 31,127,
255,224,192,128,128,128,128,192,192, 0, 0, 0,255,255,255, 6,
6, 6, 6, 6, 6,255,255,255, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0,
0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1,
1, 1, 0, 0, 0, 31, 31, 31, 0, 1, 1, 1, 1, 0, 0, 0,
0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0,
225, 33, 33, 32, 0,160, 0, 0,128,129,129, 1,128,128,128,128,
128,128,128,129,129,129, 1, 1,129, 1, 1,129,128,128,128,128,
0, 0,129,129,129, 1,129,129,128, 0, 0, 0, 1,193, 33, 32,
32,192, 0, 0, 0, 1, 65, 97,224, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
15, 1, 1, 1, 0, 15, 0, 0, 15, 0, 0, 0, 15, 0, 0, 0,
15, 0, 0, 15, 0, 7, 8, 15, 0, 15, 8, 7, 14, 10, 10, 15,
0, 0, 15, 0, 0, 7, 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0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 64,127, 0, 0, 56, 68, 68, 68, 56, 0, 0,127, 4, 4,
4,120,116, 84, 84,124, 0, 0,124, 4, 4, 4,120, 0, 0, 0,
127, 8, 8, 8,127, 0, 56, 84, 84, 84, 88, 0, 0,127, 0, 0,
127, 0, 56, 68, 68, 68,127, 0, 0,125, 0, 0,124, 4, 4, 4,
120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
void main() {
OSCCON = 255; //Sätt internoscillatorn på 8 MHz
ADCON1 = 15; //Gör portA digital
Glcd_Init(&PORTA, 1, 0, 2, 3, 4, 5, &PORTB); //Initiera displayen
Glcd_Fill(0); //Rensa displayen
Glcd_Image(start_img); //Visa bilden
while(1){
Glcd_Box(0,0,127,63,2); //Invertera bilden
delay_ms(3000); //Vänta 3 sekunder
}
}
felmedelandet är
0 1 mikroCPIC1618.exe -MSF -DBG -pP18F2550 -DL -O11111114 -fo8 -N"N:\Dokument\ReptilTECH\reptiltech.mcppi" -SP"C:\Program Files (x86)\Mikroelektronika\mikroC PRO for PIC\defs\" -SP"C:\Program Files (x86)\Mikroelektronika\mikroC PRO for PIC\uses\P18\" -SP"N:\Dokument\ReptilTECH\" "reptiltech.c" "__Lib_Math.mcl" "__Lib_MathDouble.mcl" "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_I2C_b10.mcl" "__Lib_USB_genHID.mcl" "__Lib_GlcdFonts.mcl" "__Lib_Glcd.mcl"
0 125 All files Preprocessed in 31 ms
0 121 Compilation Started reptiltech.c
77 313 Too many actual parameters reptiltech.c
0 102 Finished (with errors): 08 okt 2009, 09:49:19 reptiltech.mcppi
och rad 77 är Glcd_Init(&PORTA, 1, 0, 2, 3, 4, 5, &PORTB); //Initiera displayen