2012-04-09 07:57 PM
Does anyone have a demo / tutorial on how to setup the STM32 USB Library to work with the WinUSB driver. Jan Axelson's ''USB Complete Fourth Edition'' describes how to setup the descriptor, and how to setup the INF file for Windows, but I am not sure what pieces of the USB Library that I need or how to set them up.
#winusb #stm32 #usb2012-08-18 07:23 PM
Thanks kattan.darren, this is a nice addition, but I am looking for an ST library with will interface with the USB demo program at
. It provides data transfer for Control, Interrupt, and Bulk. I have it working with data going to the ST, but I am currently having trouble getting the data from the ST back to the PC.2013-02-28 03:59 PM
dear pila.rosarium... this answer is really clever. Are you this frustrated ? Please redirect your anger against Python fanboys.
2017-11-03 03:06 PM
Actually you may use the WinUSB even without the .inf file. Setting up device, configuration and qualifier descrpitors shoud not be a problem. Just copy following files (.h and .c :(
usb_device
usbd_confusbd_coreusbd_ctlrequsbd_descusbd_ioreqfrom any other class, preferably CDC. You have to create USBD_ClassTypeDef structure of callbacks and set-up the descriptors as desired. Just set the class in device descriptor as 00 ( specified by interface ), in interface set it to FF ( vendor specific ).Google for WinUSB signature user string. Return this descriptor, when you will receive request for string at 0xEE.Provide additional two descriptors - ExtendedCompatID and ExtendedProperties. You may find info about these on Microsoft MSDN. There is a .zip file with three .docx file, exactly explaining what you need.In usbd_conf file in USBD_LL_Init method you would like to change PMA memory addresses assigned to your endpoints. That is important.Minor edit would be required in file usbd_ctlreq, as the ST usb firmware does not forward setup device callbacks to your class setup method.Good luck.