yes i did... i compiled the whole original project and tested it in a 18f2550 and didn't work...
after testing many different configs and even not too logical things i found the problem...![]()
i managed to use a different report descriptor and the rest from the circle in a mouse descriptor example.
now the pc recognizes the device but when i put in the buffer anything it sends many keys at the same time, that's because i had the endopint buffer size set to 1 byte so it only sends the first byte of data and discard the rest...
#define USB_POLLING
#define HID_INTF_ID 0x00
#define HID_EP 1
#define HID_INT_OUT_EP_SIZE 3 ; 1
#define HID_INT_IN_EP_SIZE 3 ; 1
#define HID_NUM_OF_DSC 1
now that i have changed the HID_INT_IN_EP_SIZE from 1 to 3 it let me to put on the buffer a variable array and send for example
variable[0]=%00000000
variable[1]=%00000001
the usb raw data will llok like this
00 01
thanks for your help!!!
Bookmarks