Yup, the ARM instead of THUMB mode did the trick !! Wonder why they (keil) releases the project set to THUMB mode ??) Anyway, the PC now sees two HID devices, "HID-compatible unit" and a "USB usercontrolled inputdevice(HID) (names was translated from my danish version of Win2K :-) However, the HIDClient 1 and 2 is not working too well....the hidclient1 just hangs when the LPC2148 device is selected, and the hidclient2 only partial works, reports some "invalid handles" etc in the list view. Did you get the hidclient1 and 2 programs to work ? Carsten > > Before trying to make it work with gcc, I first made it work with > the Keil compiler and my EA board. > > To make it work, I needed to: > * Add this line somewhere before USB_Init is called, to set P0.31: > PINSEL1 = (PINSEL1 & ~(3 << 30)) | (2 << 30); > * Compile all of the code as ARM code, not THUMB (!) > * I also changed some of the LED bits, because the LEDs are at > different pins on the EA board. > > Kind regards, > Bertrik > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (MingW32) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFDyAENETD6mlrWxPURAj1hAJ0XJLXJ0QP0YGp95FH+P28RtLNSigCfbIqX > nquq4n0XHfxmaKhYSceVVDU= > =vsZ4 > -----END PGP SIGNATURE----- >
Message
Re: LPC2148 USB samples (not working)
2006-01-13 by Carsten Grøn
Attachments
- No local attachments were found for this message.