CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

question regarding ex_usb_kbmouse2.c demo

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ramey



Joined: 11 Sep 2007
Posts: 18

View user's profile Send private message

question regarding ex_usb_kbmouse2.c demo
PostPosted: Tue Sep 11, 2007 3:07 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group