I have made a small PCB with a PIC32 on it. Using MCC I configured my project to use USB-host with a HID TPL. Then I extracted the keyboard example from the latest Microchip MLA, and I'm basically using app_host_hid_keyboard.* right into my project, just for testing. I added a lot of debug-messages in the functions as well just to get a grasp of where the code is running. Using MCC I also added a UART, so I can print the debug-messages on there and watch on my PC.
When running the project and attaching a keyboard, I see this on the debug terminal:
HOST: Initializing DETACHED state.
app_host: Attach keyboard
[>HOST: Starting settling delay.
And then nothing happens. So obviously the code is running, the USB-stack is up, it recognizes a USB-device is inserted, but then goes dead. I have not changed anything in the USB-stack or in the example code from the MLA.
Any tips of where I should go from here?