Bonjour à tous,
Je souhaite compiler le projet "USB Device - Mass Storage - SD Card data logger - C18 - PIC18F46J50 PIM".mcp" de Microchip ce situant dans "C:\Microchip Solutions v2010-10-19\USB Device - Mass Storage - SD Card data logger\Mass Storage - Data Logger - Firmware". J'ai besoin de ce projet comme base de départ pour la lecture et l'écriture dans une carte SD. Je n'ai pas modifié le projet, il est tel quel, écrit par Microchip.
Malheursement, j'ai l'erreur suivante :
Code:Clean: Deleting intermediary and output files. Clean: Done. Executing: "C:\Program Files\Microchip\mplabc18\v3.37.01\bin\mcc18.exe" -p=18F46J50 /i"C:\Program Files\Microchip\mplabc18\v3.37.01\h" -I"C:\Microchip Solutions v2010-10-19\Microchip\Include" "usb_descriptors.c" -fo=".\Objects\USB Device - Mass Storage - SD Card + MDD File System C18\usb_descriptors.o" -mL -Ls Executing: "C:\Program Files\Microchip\mplabc18\v3.37.01\bin\mcc18.exe" -p=18F46J50 /i"C:\Program Files\Microchip\mplabc18\v3.37.01\h" -I"C:\Microchip Solutions v2010-10-19\Microchip\Include" "main.c" -fo=".\Objects\USB Device - Mass Storage - SD Card + MDD File System C18\main.o" -mL -Ls Executing: "C:\Program Files\Microchip\mplabc18\v3.37.01\bin\mcc18.exe" -p=18F46J50 /i"C:\Program Files\Microchip\mplabc18\v3.37.01\h" -I"C:\Microchip Solutions v2010-10-19\Microchip\Include" "..\..\Microchip\MDD File System\SD-SPI.c" -fo=".\Objects\USB Device - Mass Storage - SD Card + MDD File System C18\SD-SPI.o" -mL -Ls Executing: "C:\Program Files\Microchip\mplabc18\v3.37.01\bin\mcc18.exe" -p=18F46J50 /i"C:\Program Files\Microchip\mplabc18\v3.37.01\h" -I"C:\Microchip Solutions v2010-10-19\Microchip\Include" "..\..\Microchip\MDD File System\FSIO.c" -fo=".\Objects\USB Device - Mass Storage - SD Card + MDD File System C18\FSIO.o" -mL -Ls Executing: "C:\Program Files\Microchip\mplabc18\v3.37.01\bin\mcc18.exe" -p=18F46J50 /i"C:\Program Files\Microchip\mplabc18\v3.37.01\h" -I"C:\Microchip Solutions v2010-10-19\Microchip\Include" "..\..\Microchip\PIC18 salloc\salloc.c" -fo=".\Objects\USB Device - Mass Storage - SD Card + MDD File System C18\salloc.o" -mL -Ls Executing: "C:\Program Files\Microchip\mplabc18\v3.37.01\bin\mcc18.exe" -p=18F46J50 /i"C:\Program Files\Microchip\mplabc18\v3.37.01\h" -I"C:\Microchip Solutions v2010-10-19\Microchip\Include" "..\..\Microchip\USB\usb_device.c" -fo=".\Objects\USB Device - Mass Storage - SD Card + MDD File System C18\usb_device.o" -mL -Ls Executing: "C:\Program Files\Microchip\mplabc18\v3.37.01\bin\mcc18.exe" -p=18F46J50 /i"C:\Program Files\Microchip\mplabc18\v3.37.01\h" -I"C:\Microchip Solutions v2010-10-19\Microchip\Include" "..\..\Microchip\USB\MSD Device Driver\usb_function_msd.c" -fo=".\Objects\USB Device - Mass Storage - SD Card + MDD File System C18\usb_function_msd.o" -mL -Ls Executing: "C:\Program Files\Microchip\mplabc18\v3.37.01\bin\mplink.exe" /p18F46J50 /l"C:\Program Files\Microchip\mplabc18\v3.37.01\lib" /k"C:\Program Files\Microchip\mplabc18\v3.37.01\lib" "rm18f46j50_g.lkr" "Objects\USB Device - Mass Storage - SD Card + MDD File System C18\usb_descriptors.o" "Objects\USB Device - Mass Storage - SD Card + MDD File System C18\main.o" "Objects\USB Device - Mass Storage - SD Card + MDD File System C18\SD-SPI.o" "Objects\USB Device - Mass Storage - SD Card + MDD File System C18\FSIO.o" "Objects\USB Device - Mass Storage - SD Card + MDD File System C18\salloc.o" "Objects\USB Device - Mass Storage - SD Card + MDD File System C18\usb_device.o" "Objects\USB Device - Mass Storage - SD Card + MDD File System C18\usb_function_msd.o" /u_CRUNTIME /z__MPLAB_BUILD=1 /m"USB Device - Mass Storage - SD Card data logger - C18 - PIC18F46J50 PIM.map" /w /o"USB Device - Mass Storage - SD Card data logger - C18 - PIC18F46J50 PIM.cof" MPLINK 4.38, Linker Copyright (c) 1998-2010 Microchip Technology Inc. Error - section '.code_SD-SPI.o' can not fit the section. Section '.code_SD-SPI.o' length=0x0000193e Errors : 1 Link step failed. ---------------------------------------------------------------------- Release build of project `C:\Microchip Solutions v2010-10-19\USB Device - Mass Storage - SD Card data logger\Mass Storage - Data Logger - Firmware\USB Device - Mass Storage - SD Card data logger - C18 - PIC18F46J50 PIM.mcp' failed. Language tool versions: MPASMWIN.exe v5.40, mplink.exe v4.38, mcc18.exe v3.37.01, mplib.exe v4.38 Tue Apr 26 10:45:08 2011 ---------------------------------------------------------------------- BUILD FAILED
Je suis donc très embeté car je ne comprend pas d'où vient cette erreur. Je pense à un probleme de place mémoire, mais j'ai bien coché les options d'optimisations à "Enable all" en MCC18 (MPLABC18) pour le pic18F46J50.
Est ce que je me suis trompé quelque part?
Avez-vous une solution?
Merci de votre aide.
-----