Connect with us

Microchip compiling problem

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,
    being a novice I've had many problems with adopting a small test-driver of an LCD for PIC18F4550. Now much further from some days ago by the help of various great people of forums, but still get errors for things I don't know about the C18 compiler I'm using.

    I'll provide the current error I have, hope someone help me go one step further with it. Also, I see in link statement "E:\mcc18\h", while I don't have such folder, but in "C:\mcc18\h", and I can't find from where in Microchip IDE to edit this.

    I also attach the program and its other header files.

    Code:
    ----------------------------------------------------------------------
    Release build of project `C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd4550.mcp' started.
    Mon Sep 20 08:29:04 2010
    ----------------------------------------------------------------------
    Clean: Deleting intermediary and output files.
    Clean: Deleted file "C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.o".
    Clean: Deleted file "C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd4550.mcs".
    Clean: Done.
    Executing: "C:\mcc18\bin\mcc18.exe" -p=18F4550 /i"E:\MCC18\h" "lcd-4550.c" -fo="LCD-4550.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:135:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:136:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:138:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:139:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:140:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:141:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:142:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:143:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:144:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:145:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:146:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:147:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:148:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:149:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:150:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:151:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:152:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:153:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:154:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:155:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:156:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:157:Warning [2054] suspicious pointer conversion
    C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:158:Warning [2054] suspicious pointer conversion
    Executing: "C:\mcc18\bin\mplink.exe" /l"E:\MCC18\lib" /k"E:\MCC18\lkr" "18f4550.lkr" "lcd-4550.o" /z__MPLAB_BUILD=1 /m"lcd4550.map" /o"lcd4550.cof"
    MPLINK 4.1, Linker
    Copyright (c) 2006 Microchip Technology Inc.
    Error - Configuration settings have been specified for address 0x00300000 in more than one object module.  Found in './lcd-4550.o', previously found in './LCD-4550.o'
    Errors    : 1
    
    Link step failed.
    ----------------------------------------------------------------------
    Release build of project `C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd4550.mcp' failed.
    Mon Sep 20 08:29:05 2010
    ----------------------------------------------------------------------
    BUILD FAILED
    Please help if possible! :D
     

    Attached Files:

  2. (*steve*)

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

    25,497
    2,839
    Jan 21, 2010
    It sounds like the compiler is case sensitive and you are referring to a module using upper case in one place and lower case in another.

    It thinks that values defined in the module (windows is not case sensitive) are being defined twice.

    Find where that module is references and ensure it is in the same case in all places.
     
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

-