Something odd:
The compiler refuses to compile an .mpas file of which the source file is in the project manager under "sources", also after a change of the file content. The project continous to use the (old) .mcl file apparently.
The option "always build all files in project" is on.
The compilation (yes or no) of that particular file depends on whether (yes or no) the source file of an installed library (in the library manager) is present (the .mcl file is always present). Very odd.
The project at hand:
In the attachment the full project is found, except for the packages installed.
- Two packages are used in the project:
USB_OA: see http://www.rosseeld.be/DRO/PIC/USB_OA.mpkg
Utilities: see http://www.rosseeld.be/DRO/PIC/Utilities.mpkg
- All files in the zipfile are present in the working directory "C:\PIC Projects PRO compiler\Prototyping\USB\USB Test of Own CDC Library", the 2 installed packages are present in the standard package locations.
The problem:
- The source file "USB_CDC_ProjectItems.mpas" will not be compiled if the library source file "USB_CDC_Library.mpas" is absent (remove or rename this file in the packages "uses" directory).
The library uses some constants defined in the "USB_CDC_ProjectItems.mpas" file.
The logfile:
As you can see the file "USB_CDC_ProjectItems.mpas" is in the command line, but is further not mentioned in the logfile (no compilation done).0 1 mPPic.exe -MSF -DBG -pP18F2550 -Y -DL -RA -O11111114 -fo48 -N"C:\PIC Projects PRO compiler\Prototyping\USB\USB Test of Own CDC Library\USB_CDC_Demo.mpppi" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC\Defs\" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC\uses\P18\" -SP"C:\PIC Projects PRO compiler\Prototyping\USB\USB Test of Own CDC Library\" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC\Packages\USB_OA\Uses\" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC\Packages\Utilities\Uses\" "__Lib_Math.mcl" "__Lib_MathDouble.mcl" "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_String.mcl" "__Lib_Conversions.mcl" "__Lib_SoftUART.mcl" "__Lib_UART_c67.mcl" "USB_CDC_Library.mcl" "BitUtils.mcl" "USB_CDC_Demo.mpas" "USB_CDC_ProjectItems.mpas" "USB_CDC_Demo.pld"
diagnostics: 0 155 Available RAM: 2027 [bytes], Available ROM: 32768 [bytes]
diagnostics: 0 133 Compilation Started C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC\defs\P18F2550.mpas
hint: 1 1015 Hint: Compiling unit "C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC\defs\P18F2550.mpas" P18F2550.mpas
hint: 1413 1010 Hint: Unit "P18F2550.mpas" has been recompiled P18F2550.mpas
diagnostics: 0 134 Compiled Successfully C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC\defs\P18F2550.mpas
diagnostics: 0 133 Compilation Started C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC\uses\P18\__Lib_Delays.mpas
hint: 1 1015 Hint: Compiling unit "C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC\uses\P18\__Lib_Delays.mpas" __Lib_Delays.mpas
hint: 188 1010 Hint: Unit "__Lib_Delays.mpas" has been recompiled __Lib_Delays.mpas
diagnostics: 0 134 Compiled Successfully C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC\uses\P18\__Lib_Delays.mpas
diagnostics: 0 133 Compilation Started C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC\Packages\Utilities\Uses\BitUtils.mpas
hint: 1 1015 Hint: Compiling unit "C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC\Packages\Utilities\Uses\BitUtils.mpas" BitUtils.mpas
hint: 199 1011 Hint: Variable "BitNr" has been eliminated by optimizer BitUtils.mpas
hint: 213 1011 Hint: Variable "ByteNr" has been eliminated by optimizer BitUtils.mpas
hint: 213 1011 Hint: Variable "BitNr" has been eliminated by optimizer BitUtils.mpas
hint: 213 1011 Hint: Variable "Mask" has been eliminated by optimizer BitUtils.mpas
hint: 239 1011 Hint: Variable "BitNr" has been eliminated by optimizer BitUtils.mpas
hint: 253 1011 Hint: Variable "ByteNr" has been eliminated by optimizer BitUtils.mpas
hint: 253 1011 Hint: Variable "BitNr" has been eliminated by optimizer BitUtils.mpas
hint: 253 1011 Hint: Variable "Mask" has been eliminated by optimizer BitUtils.mpas
hint: 261 1010 Hint: Unit "BitUtils.mpas" has been recompiled BitUtils.mpas
diagnostics: 0 134 Compiled Successfully C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC\Packages\Utilities\Uses\BitUtils.mpas
diagnostics: 0 133 Compilation Started C:\PIC Projects PRO compiler\Prototyping\USB\USB Test of Own CDC Library\USB_CDC_Demo.mpas
hint: 1 1015 Hint: Compiling unit "C:\PIC Projects PRO compiler\Prototyping\USB\USB Test of Own CDC Library\USB_CDC_Demo.mpas" USB_CDC_Demo.mpas
hint: 50 1021 Hint: interrupt handler (interrupt at 0x0008) USB_CDC_Demo.mpas
hint: 67 1011 Hint: Variable "Recvd" has been eliminated by optimizer USB_CDC_Demo.mpas
hint: 180 1010 Hint: Unit "USB_CDC_Demo.mpas" has been recompiled USB_CDC_Demo.mpas
diagnostics: 0 134 Compiled Successfully C:\PIC Projects PRO compiler\Prototyping\USB\USB Test of Own CDC Library\USB_CDC_Demo.mpas
diagnostics: 0 139 All files Compiled in 0 ms
hint: 0 1144 Used RAM (bytes): 680 (34%) Free RAM (bytes): 1347 (66%) Used RAM (bytes): 680 (34%) Free RAM (bytes): 1347 (66%)
hint: 0 1144 Used ROM (bytes): 4366 (13%) Free ROM (bytes): 28402 (87%) Used ROM (bytes): 4366 (13%) Free ROM (bytes): 28402 (87%)
diagnostics: 0 145 Project Linked Successfully USB_CDC_Demo.mpppi
diagnostics: 0 140 Linked in 63 ms
diagnostics: 0 141 Project 'USB_CDC_Demo.mpppi' completed: 172 ms
diagnostics: 0 103 Finished successfully: 05 dec 2011, 20:03:19 USB_CDC_Demo.mpppi
Thanks in advance!