My aim here is to compile the code for a 18F2455, as it is so similar to the 2550 i expected this to be 'easy'
after installing the latest MPLAB IDE, C18 lite compiler and the sources for USB (from 'Microchip Application Libraries v2010-08-04 Installer.exe') and copying the usb_descriptors.c source to the project directory...
The files for USB don't seem to be in the same directory hierarchy as expected.. the compiler looks for files in ./USBStack
i found the files it was looking for in J:Microchip Solutions v2010-08-04MicrochipUSB
so i renamed the folder to USBStack and moved it into the project directory.
now it gets stuck at linking
and yes i did modify the 'library search path' to the correct MCC18 directory
----------------------------------------------------------------------
Release build of project `J:Microchip Solutions v2010-08-04IRtoy-firmwareUSBIRToy.mcp' started.
Language tool versions: mpasmwin.exe v5.37, mplink.exe v4.37, mcc18.exe v3.36, mplib.exe v4.37
Tue Sep 21 19:30:12 2010
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "J:MCC18binmcc18.exe" -p=18F2550 /i"c:mcc18h" -I"..microchipinclude" -I"C:Microchip SolutionsUSBIRr" "..MicrochipUsbusb_device.c" -fo="usb_device.o" -Om- -On- -Ou- -Os- -Ot- -Ob- -Ow- -Op- -Or- -Od- -Opa-
Executing: "J:MCC18binmcc18.exe" -p=18F2550 /i"c:mcc18h" -I"..microchipinclude" -I"C:Microchip SolutionsUSBIRr" "..MicrochipUsbCDC Device Driverusb_function_cdc.c" -fo="usb_function_cdc.o" -Om- -On- -Ou- -Os- -Ot- -Ob- -Ow- -Op- -Or- -Od- -Opa-
Executing: "J:MCC18binmcc18.exe" -p=18F2550 /i"c:mcc18h" -I"..microchipinclude" -I"C:Microchip SolutionsUSBIRr" "usb_descriptors.c" -fo="usb_descriptors.o" -Om- -On- -Ou- -Os- -Ot- -Ob- -Ow- -Op- -Or- -Od- -Opa-
Executing: "J:MCC18binmcc18.exe" -p=18F2550 /i"c:mcc18h" -I"..microchipinclude" -I"C:Microchip SolutionsUSBIRr" "main.c" -fo="main.o" -Om- -On- -Ou- -Os- -Ot- -Ob- -Ow- -Op- -Or- -Od- -Opa-
J:Microchip Solutions v2010-08-04IRtoy-firmwaremain.c:226:Warning [2054] suspicious pointer conversion
J:Microchip Solutions v2010-08-04IRtoy-firmwaremain.c:410:Warning [2054] suspicious pointer conversion
Executing: "J:MCC18binmcc18.exe" -p=18F2550 /i"c:mcc18h" -I"..microchipinclude" -I"C:Microchip SolutionsUSBIRr" "SUMP.c" -fo="SUMP.o" -Om- -On- -Ou- -Os- -Ot- -Ob- -Ow- -Op- -Or- -Od- -Opa-
J:Microchip Solutions v2010-08-04IRtoy-firmwareSUMP.c:71:Warning [2054] suspicious pointer conversion
J:Microchip Solutions v2010-08-04IRtoy-firmwareSUMP.c:136:Warning [2054] suspicious pointer conversion
Executing: "J:MCC18binmcc18.exe" -p=18F2550 /i"c:mcc18h" -I"..microchipinclude" -I"C:Microchip SolutionsUSBIRr" "IRIO.c" -fo="IRIO.o" -Om- -On- -Ou- -Os- -Ot- -Ob- -Ow- -Op- -Or- -Od- -Opa-
J:Microchip Solutions v2010-08-04IRtoy-firmwareIRIO.c:46:Warning [2054] suspicious pointer conversion
J:Microchip Solutions v2010-08-04IRtoy-firmwareIRIO.c:117:Warning [2054] suspicious pointer conversion
J:Microchip Solutions v2010-08-04IRtoy-firmwareIRIO.c:233:Warning [2054] suspicious pointer conversion
Executing: "J:MCC18binmcc18.exe" -p=18F2550 /i"c:mcc18h" -I"..microchipinclude" -I"C:Microchip SolutionsUSBIRr" "RCdecoder.c" -fo="RCdecoder.o" -Om- -On- -Ou- -Os- -Ot- -Ob- -Ow- -Op- -Or- -Od- -Opa-
J:Microchip Solutions v2010-08-04IRtoy-firmwareRCdecoder.c:55:Warning [2054] suspicious pointer conversion
J:Microchip Solutions v2010-08-04IRtoy-firmwareRCdecoder.c:106:Warning [2054] suspicious pointer conversion
Executing: "J:MCC18binmcc18.exe" -p=18F2550 /i"c:mcc18h" -I"..microchipinclude" -I"C:Microchip SolutionsUSBIRr" "USBbuf.c" -fo="USBbuf.o" -Om- -On- -Ou- -Os- -Ot- -Ob- -Ow- -Op- -Or- -Od- -Opa-
J:Microchip Solutions v2010-08-04IRtoy-firmwareUSBbuf.c:25:Warning [2054] suspicious pointer conversion
Executing: "J:MCC18binmcc18.exe" -p=18F2550 /i"c:mcc18h" -I"..microchipinclude" -I"C:Microchip SolutionsUSBIRr" "IRs.c" -fo="IRs.o" -Om- -On- -Ou- -Os- -Ot- -Ob- -Ow- -Op- -Or- -Od- -Opa-
J:Microchip Solutions v2010-08-04IRtoy-firmwareIRs.c:59:Warning [2054] suspicious pointer conversion
J:Microchip Solutions v2010-08-04IRtoy-firmwareIRs.c:165:Warning [2054] suspicious pointer conversion
J:Microchip Solutions v2010-08-04IRtoy-firmwareIRs.c:197:Warning [2054] suspicious pointer conversion
J:Microchip Solutions v2010-08-04IRtoy-firmwareIRs.c:360:Warning [2054] suspicious pointer conversion
J:Microchip Solutions v2010-08-04IRtoy-firmwareIRs.c:374:Warning [2054] suspicious pointer conversion
Executing: "J:MCC18binmplink.exe" /l"j:mcc18lib" "rm18f2550 - HID Bootload.lkr" "usb_device.o" "usb_function_cdc.o" "usb_descriptors.o" "main.o" "SUMP.o" "IRIO.o" "RCdecoder.o" "USBbuf.o" "IRs.o" /u_CRUNTIME /z__MPLAB_BUILD=1 /m"J:Documents and SettingsjarrodDesktopusbirtoyIRtoy-firmwarebuildUSBIRToy.map" /w /o"J:Documents and SettingsjarrodDesktopusbirtoyIRtoy-firmwarebuildUSBIRToy.cof"
MPLINK 4.37, Linker
Copyright (c) 1998-2010 Microchip Technology Inc.
Error - could not find definition of symbol 'mySetLineCodingHandler' in file './usb_function_cdc.o'.
Errors : 1
Link step failed.
----------------------------------------------------------------------
Release build of project `J:Microchip Solutions v2010-08-04IRtoy-firmwareUSBIRToy.mcp' failed.
Language tool versions: mpasmwin.exe v5.37, mplink.exe v4.37, mcc18.exe v3.36, mplib.exe v4.37
Tue Sep 21 19:30:15 2010
----------------------------------------------------------------------
BUILD FAILED