Connect with us

MPLAB IDE, C18 error

Discussion in 'Microcontrollers, Programming and IoT' started by kievari, Sep 20, 2010.

Scroll to continue with content
  1. kievari

    kievari

    5
    0
    Aug 31, 2010
    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?
     
  2. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    25,411
    2,779
    Jan 21, 2010
    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.
     
  3. kievari

    kievari

    5
    0
    Aug 31, 2010
    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?

    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-