Open nitz opened 4 years ago
Hello
Good to know that the you got the USB tutorial working for you. About the latest, are you trying to create an application that support a keyboard device and mouse device through a hub?
Sunil
Hi Sunil!
That is in fact my goal. Eventually I plan to support a range of device types including MSD and CDCs, but targeting a mouse and keyboard through a hub (Since they share descriptor types and would just need different drivers) seemed like a good first step.
I’ve got the feeling that I’m certainly missing something, but can’t seem to find exactly what I’ve not provided to make the code generation happy. (Plus, the “help” window of the MHC has been blank since I’ve installed it, so I’m driving blind a bit with what I can’t find googling.)
Please standby. I will revert shortly on this.
Will do, I'm in no rush. Thanks for taking a look at it, Sunil!
Hi @sunil-fernandes -- Just checking if you'd had a chance to look at this. Thanks again!
Please disregard the first edit of this ticket, as I was barking up the completely wrong tree. Following the USB Host tutorial, I'm able to build after generating code from Harmony. However, upon heading back into the configurator, and enabling hub support, the generated code fails to build, with undefined symbols. (Output below)
As well, adding a HID client driver, and enabling mouse and keyboard driver checkboxes causes build errors too. (This seems to be because the number of TPL entries is a read-only field in the configurator, based on the number of client drivers I have. Trying to enable both HID Keyboard and HID mouse adds two entries, which will cause the array to always be 1 larger than it's sized for. Playing around with it, I was actually able to get the entry number to go to 0, despite still having a client, so the generated code was always bad until I removed and re-added the Host Layer component) I can open a separate issue for that, if it's not just the case of me doing something wrong! 🙂
My build output looks like: