2016-08-01 08:11 PM
Using STM32CubeMX 4.16.0 I generated a project with the USB_DEVICE Communication Device Class option enabled. In the document at:
http://www.st.com/content/ccc/resource/technical/document/user_manual/b8/5a/28/c2/cf/b6/47/d6/DM00105256.pdf/files/DM00105256.pdf/jcr:content/translations/en.DM00105256.pdf I see in section 4.4.5 that I must call USBH_CDC_SETLineCoding() to set the line coding. I cannot find this function anywhere in the generated files. How is the line coding supposed to be set? Is the document out of date? If so where is the up to date version? #usb-cdc-line-coding2016-08-02 04:13 AM
Hi Stephen,
Using STM32CubeMX 4.16.0 I generated a project with the USB_DEVICE Communication Device Class option enabled.I think that you are using STM32Cube USB device library and not the STM32Cube USB host library.Please refer to the user manual for more details about the USB device library.Also I recommend you to have a look to USB applications under the cube firmware package as example:STM32Cube_FW_F4_V1.13.0\Projects\STM324x9I_EVAL\Applications\USB_DeviceSTM32Cube_FW_F4_V1.13.0\Projects\STM324x9I_EVAL\Applications\USB_Host-Syrine-