Ramey
Joined: 11 Sep 2007 Posts: 18
|
question regarding ex_usb_kbmouse2.c demo |
Posted: Tue Sep 11, 2007 3:07 pm |
|
|
Gentlemen,
Warming up for my real task, I'm attempting to get your demo application, ex_usb_kbmouse2.c, functioning in my environment.
My environment is:
PICDEV FS USB board
CCS PCH compiler - recently purchased
Using the Microchip boot loader to load executable.
I've made adjustments in your demo:
a) To account for he fact that the code has to be displaced by 0x800 bytes to leave room for the boot loader, I've included:
#define LOADER_END 0x7FF
#build(reset=LOADER_END+1, interrupt=LOADER_END+9) #org 0x000, 0x7ff { }
Download the code to the board and resetting displays the following on the serial output:
CCS HID Mouse/Keyboard Multiple HID Report Demo Press button to make mouse move in a circle and send an A over the keyboard
PCH: v4.055
This is very encouraging to me. However, when I press the appropriate button the development board I do not see the expected response on the PC.
Next I disconnect the USB cable from my development board and reconnect it. My serial output now shows:
USB connected, waiting for enumaration...
USB enumerated by PC/HOST
USB unenumerated by PC/HOST, waiting for enumeration...
USB disconnected, waiting for connection...
and seems to hang:
The Device Manager on the PC shows HID keyboard and mouse connected after the enumeration and before the unenumeration.
All this is encourage to me - its close - but on cigar. Can you offer me some suggestions?
Robert Ramey |
|