Maker Pro
Maker Pro

MPLAB IDE, C18 error

Hi,
I'm one step further on the way to put my LCD to be driven by my PIC18F4550, still struggling with one error I can't understand:

Code:
----------------------------------------------------------------------
Release build of project `C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd4550.mcp' started.
Mon Sep 20 23:10:33 2010
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.o".
Clean: Deleted file "C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd4550.mcs".
Clean: Done.
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F4550 /i"C:\mcc18\h" "lcd-4550.c" -fo="LCD-4550.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:134:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:135:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:137:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:138:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:139:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:140:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:141:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:142:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:143:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:144:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:145:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:146:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:147:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:148:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:149:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:150:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:151:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:152:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:153:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:154:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:155:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:156:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:157:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd-4550.c:456:Warning [2058] call of function without prototype
Executing: "C:\mcc18\bin\mplink.exe" /l"C:\mcc18\lib" /k"C:\mcc18\lkr" "..\..\..\..\..\mcc18\lkr\18f4450.lkr" "lcd-4550.o" /z__MPLAB_BUILD=1 /o"lcd4550.cof" /M"lcd4550.map" /W
MPLINK 4.1, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - processor types do not agree across all input files.
Errors    : 1

Link step failed.
----------------------------------------------------------------------
Release build of project `C:\Documents and Settings\WHW\Desktop\prj\new_lcd\lcd4550.mcp' failed.
Mon Sep 20 23:10:35 2010
----------------------------------------------------------------------
BUILD FAILED

could anybody please give some idea getting out of this?
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
It sounds like you have many suspicious pointer conversions and that the processor types do not agree across all input files.

But that's just a guess.

It will compile and link if you fix the declaration of your target device in all of your input files.

However it seems you are doing something a little odd frequently in your code. You need to determine if it's you or the compiler getting it wrong. Maybe an explicit cast is what you need to use. It's hard to tell without seeing the source.
 
It's hard to tell without seeing the source.

Thank you Steve for the reply!

Sorry that didn't up load the code last time, just in a hurry posted the error. Actually I'm on the way to (being a novice, anyway) build a simple evaluation board on PIC18F4550.

Please help with connection problem between PIC and LCD:

After BUILD SUCCEEDED I programmed my PIC18F4550 with the HEX (which succeed too).

Next I connected my LCD to the PIC in the way you see on the image and turned the circuit on, and nothing happened :(

LCD is brand new, I have two of it, and I tested both. Connections seem to be in good state.

The LCD turns on, but as if it receives nothing from PIC, but only +5 and GND from my breadboard. Could you please give ideas how to test to find the problem, having a look at my connections?

2rm5de0.png

2ahxfgy.jpg

29cqow7.jpg

231990.jpg
 
Top