Salut Benjamin,
merci beaucoup pour ton site il m'aide énormément à comprendre comment mettre en pratique le port usb.
Cependant j'ai un petit problème lors de la compilation de ton programme pour le pic sur mplab 8.7:
voici l'erreur :
Debug build of project `C:\hid\HID\MCHPUSB.mcp' started.
Preprocessor symbol `__DEBUG' is defined.
Wed Feb 07 16:08:04 2018
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\hid\HID\main.o".
Clean: Deleted file "C:\hid\HID\usbmmap.o".
Clean: Deleted file "C:\hid\HID\usbdrv.o".
Clean: Deleted file "C:\hid\HID\usb9.o".
Clean: Done.
Executing: "C:\Microchip\xc8\v1.45\bin\mcc18.exe" -p=18F4550 /i"C:\hid\HID" "main.c" -fo="main.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\Microchip\xc8\v1.45\bin\mcc18.exe" -p=18F4550 /i"C:\hid\HID" "system\usb\usbmmap.c" -fo="usbmmap.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\Microchip\xc8\v1.45\bin\mcc18.exe" -p=18F4550 /i"C:\hid\HID" "system\usb\usbdrv\usbdrv.c" -fo="usbdrv.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\Microchip\xc8\v1.45\bin\mcc18.exe" -p=18F4550 /i"C:\hid\HID" "system\usb\usb9\usb9.c" -fo="usb9.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
system\usb\usb9\usb9.c: USBStdGetDscHandler()
149: pSrc.bRom = *(USB_CD_Ptr+SetupPkt.bDscIndex);
^ (359) illegal conversion between pointer types (warning)
rom pointer to const rom unsigned char -> pointer to rom unsigned char
154: pSrc.bRom = *(USB_SD_Ptr+SetupPkt.bDscIndex);
^ (359) illegal conversion between pointer types (warning)
rom pointer to const rom unsigned char -> pointer to rom unsigned char
Executing: "C:\Microchip\xc8\v1.45\bin\mcc18.exe" -p=18F4550 /i"C:\hid\HID" "autofiles\usbdsc.c" -fo="usbdsc.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
autofiles\usbdsc.c:
202: rom struct { USB_CFG_DSC cd01; USB_INTF_DSC i00a00; USB_HID_DSC hid_i00a00; USB_EP_DSC ep01i_i00a00; USB_EP_DSC ep01o_i00a00; } cfg01={
(984) type redeclared ^
(1098) conflicting declarations for variable "cfg01" (autofiles\usbdsc.c:202) ^
(908) exit status = 1
si tu as une idée je suis preneur..
cordialement
John