I'm in the process of building a USB composite CDC + MSC device on the STM32F4 Discovery board but am having trouble getting windows to recognise it. Using USBlyzer all the descriptor info seems ok but windows will only recognise the CDC (virtual com port). The port gets enumerated and ...
( USB_INTERFACE_DESC_SIZE + 0x05 + 0x05 + 0x04 + 0x05 + USB_ENDPOINT_DESC_SIZE + USB_INTERFACE_DESC_SIZE +2*USB_ENDPOINT_DESC_SIZE )#defineCDC_IF_DESC_SET( comIfNum, datIfNum, comInEp, datOutEp, datInEp ) \/*CDC Communication Interface Descriptor*/\ USB_INTERFACE_DESC_SIZE,/...
[u] ericherman/stm32f-discovery-example:https://github.com/ericherman/stm32f4-discovery-example使用USB-CDC的例子 [u] serialUSB:https://www.das-labor.org/trac/browser/microcontroller/src-stm32f4xx/serialUSB [u] STM32F4 USB CDC connection:http://www.coocox.org/forum/topic.php?id=1757&pa...
一旦确认连接了 BleuIO加密狗,就会运行 USBH_CDC_Receive 函数以开始从 USB CDC 接收数据。 USBH_CDC_ReceiveCallback 还需要实现: 在这个例子中,接收到的数据只是回显到 UART。 使用USBH_CDC_Transmit 函数将数据发送到 Dongle。在此示例中,UART 输入用于发送不同的命令。 为此,我们创建了一个可以从 main.c ...
stm32USBCDC中串口助手无法打开 芯片:STM32F401CB,有64kB ram软件:cubemx生成的IAR工程功能:mcu控制单片机采集i2c传感器数据,通过u***的virtual com port回传到PC(后期会在mcu zrl121234562019-01-21 07:09:46 STM32USB如何配置多个CDC设备 title:STM32USB如何配置多个CDC设备—5个CDC设备,date: 2021/1/18 20...
添加头文件#include "usbd_cdc_if.h"。 在main()的死循环中添加CDC_Transmit_FS()函数。 #include "usbd_cdc_if.h" /** * @brief The application entry point. * @retval int */ int main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ ...
发送接口比较简单,经阅读 ST 对虚拟串口的实现了解到往 USB 发送数据,使用 CDC_Transmit_FS 接口即可,所以实现如下: int vSerialPutString(xComPortHandle xPort, signed char *pMessage, unsigned short len) { xPort = xPort; retry: if(0x00 != CDC_Transmit_FS(pMessage, len)) { osDelay(10); goto...
STM32 USB_CDC配置前言:配置思路前言:做之前先要有一些准备:1、PC上装好VCP1.31以上的虚拟串口驱动2、准备一块带USB的STM32(是要连接好USB接口的,不是串口的USB)3 lhhgff 2021-08-23 07:24:19 求大佬分享STM32 USB CDC虚拟多串口的测试代码 求大佬分享STM32 USB CDC虚拟多串口的测试代码 uuwyfsdfsf ...
USB设备/主机:USB功能使STM32能够与PC或其他USB设备通信。学习USB协议基础、STM32的USB外设配置和常用的USB类(如CDC、HID等)。实践项目可以是USB虚拟串口、USB键盘/鼠标模拟等。 USB是一个相对复杂的主题,涉及到协议栈和驱动开发。我建议初次接触时,使用ST提供的USB中间件库,先实现基本功能,然后再深入理解其工作原...
Since I started from the USB-CDC code example from ChibiOS which is GPLv3, I think I am forced to release this code under GPLv3 though I don't care what you do with the code. I asked Giovanni and he said "there is not much meat" in it anyways....