USB HID example in RDB1768cmsis2 on LPC1769

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB HID example in RDB1768cmsis2 on LPC1769

639件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Pax on Thu Oct 11 01:39:57 MST 2012
[FONT=Arial][SIZE=2][SIZE=1]Hello All,

I am trying to get the USB HID examples from Code Red's example archive RDB1768cmsis2 to work correctly on an LPC1769 and Embedded Artists motor control board. (The example archive is included in the LPCXpresso IDE examples dir)

I have tried both the usb_hid and usb_hidmouse examples [/SIZE][/SIZE][/FONT][FONT=Arial][SIZE=2][SIZE=1](concentrating on the [/SIZE][/SIZE][/FONT][FONT=Arial][SIZE=2][SIZE=1][FONT=Arial][SIZE=2][SIZE=1]usb_hid[/SIZE][/SIZE][/FONT]), but neither enumerate the USB device correctly. I did do some initial debugging of the [FONT=Arial][SIZE=2][SIZE=1][FONT=Arial][SIZE=2][SIZE=1]usb_hid and the usbstack code it uses, and judging by the Code Red comments at least the USB I/O pins (D+, D- etc) seem to be configured correctly.

There is some interrupt activity on the device, but enumeration does not seem to progress very far at all.

Before I spend (probably much) time on debugging further, does anybody know straight off what is the issue(s) with this example code?

Thanks,
[/SIZE][/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE][/SIZE][/FONT]
0 件の賞賛
返信
2 返答(返信)

613件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Pax on Thu Oct 11 15:25:14 MST 2012
Hello again,

I continued and looked more closely at the USB pin function assignments; the pin assignments are correct for the LPC1769 as such, however I discovered an issue with that assignment and the wiring on the EA motor control board: the Code Red example assumes the VBUS pin is connected to the USB VBUS line. On the EA board that is not the case, that pin is used to measure a motor phase back EMF.

After changing the VBUS pin assignment so that it is driven high internally (and thus does not reset the CONNECT output pin), the HID device enumerated correctly!
0 件の賞賛
返信

613件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by whitecoe on Thu Oct 11 06:50:02 MST 2012
I've used the RDB1768 demo code in the past and not seen any issues with the HID examples. But that was on an RDB1768 board.

Thus I assume that you are missing a USB related pinmuxing issue somewhere. I've never seen an Embedded Artists motor control board so can't help with suggesting where. Might be worth comparing the pinmux information in the RDB user manual with the docs for the EA board.

http://support.code-red-tech.com/CodeRedWiki/RDB1768V2Support

HTH!
0 件の賞賛
返信