PE Micro sent me the CW project for the original firmware that ships with the DEMOJM board. They have given me permission to upload it here.
Hi, I have a new JM60 board that I have been trying to learn USB with. Reading through USB documentation, HID class documentation and the example code has been quite overwhelming. I was wondering if anyone could point me in the right direction (a direction that maybe does not require learning how the USB Driver works completely but instead just how to use it). What I am trying to do is stream large packets of data (~128 bytes) from the host (a C++/C# program) to the microprocessor. The microprocessor will then process this data and when it is ready it will request/process the next packet. I have been trying to modify the HID generic example but this has proven to be more difficult then I expected.
I have tried modifying the geh_report_descriptor to increase the max number of bytes that can be sent but have only been able to get a very small number working. What is the maximum packet size the JM60 can take? Can I not write to all of the USB RAM available for endpoint buffers (223 bytes) at a single time?
Any help would be great!
Thank you!
Wes