STM32 USB Device Composite Class based on the STM32H503 In this repository : This application provides a C code example showing on how to use the legacy USB Middleware to develop a USB Device Composite applicat
Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up {{ message }} stm32-hotspot / USBD_Composite_STM32H503 Public Notifications You must be signed in to change notification settings Fork 0 Star 0 ...
无论是CDC的还是MSC的设备描述符不符合要求了,并且看到代码里有USE_USBD_COMPOSITE宏判断: 即可理解为如果定义了USE_USBD_COMPOSITE宏,即不再使用MSC和CDC里的设备描述符和相关配置。那么就应该在MSC和CDC两个关系之上,实现这一部分。于是新建两个文件分别是usbd_composite.c 和 usbd_composite.h,关键部分如下:...
[ 118.780524] dma_map_page_attrs+0x70/0xd4 [ 118.784529] usb_gadget_map_request_by_dev.part.0+0xe8/0x1ec [ 118.790184] dwc2_hsotg_ep_queue.constprop.0+0x224/0x418 [ 118.795492] dwc2_hsotg_ep_queue_lock+0x30/0x48 [ 118.800016] composite_ep0_queue.constprop.0+0x20/0x9c [ 118.80...
/* Enable USB FS Clocks */ __HAL_RCC_USB_OTG_FS_CLK_ENABLE();/* Set USBFS Interrupt to ...
\STM32_USB-FS-Device_Lib_V3.4.0\Project\Virtual_COM_Port We'll make 3x CDC composite device. 1) Descriptors First the device descriptor is modified at class/subclass/protocol and VID/PID (idVendor/idProduct) fields. We assign temporary VID/PID just for this development. Get official VID/...
We will make all the changes in the usbd_storage_if.c file. It is located at CORE -> USB_DEVICE -> App. Just open the file and modify as mentioned below#define STORAGE_LUN_NBR 1 #define STORAGE_BLK_NBR 200 // enter twice the size of the RAM that you want to use #define ...
** ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS ** SOFTWARE.*/ /* Private headers */ #include "usb_lib_globals.h" #include "usb_reg_map.h" #include "libmaple/usb.h" #include <string.h> #include <libmaple/gpio.h> #include "usb_audio.h" #...
在未熟悉UVC规范的情况下我们也可以把代码框架搭建起来,STM32_USB_Device_Library库是一个很方便扩展的库,因为它把内核和设备类区分出来了,我们要想实现UVC就要新建一个设备类文件夹,刚好UVC和UAC有那么一点类似之处,我们可以把AUDIO中的文件拷贝一份到UVC文件夹下并修改文件名,这样我们就有了u***d_uvc以及u**...
Figure 6. USB Composite Device 6.4.2 6.4.3 ST-LINK/V2-1 firmware upgrade The ST-LINK/V2-1 embeds a firmware upgrade mechanism for the in-place upgrade through the USB port. As the firmware might evolve during the lifetime of the ST-LINK/V2-1 product (for example new functionalities, ...