This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USBH CDC ACM Virtual Com Port Question

In Keil's Run Time Environment

I will only use USB Port
I use it as virtual com.

When I coding USB Host Virtual com
as usbh cdc acm, usart port included, why??

//////////////////////////
extern ARM_DRIVER_USART Driver_USART9;
#define ptrUART_USB (&Driver_USART9)
////////////////////////

In keil's "manage run time environment" configure
mcu : stm32f207vc
CMSIS : core
RTOS : Keil RTX
CMSIS Driver : USART(API) : CDC, USART
USB Host(API) : Full Speed
Device : CStartup, classic
Device : common,Cortex,DMA,GPIO,RCC
USB : Host :CDC

Parents
  • Hi Hojin,

    This is just a implementation that provides CMSIS USART driver to communicate with CDC device.
    Index 9 is selected not to clash with any hardware USARTs that a chip has. You can configure the index differently by providing define USART_CDC_DRV0_NUM to the USART_CDC_ACM.c driver.

    You can use USBH CDC without CMSIS USART driver for CDC communicated directly by using USBH functions for example USBH_CDC_ACM_Send/USBH_CDC_ACM_Receive.

Reply
  • Hi Hojin,

    This is just a implementation that provides CMSIS USART driver to communicate with CDC device.
    Index 9 is selected not to clash with any hardware USARTs that a chip has. You can configure the index differently by providing define USART_CDC_DRV0_NUM to the USART_CDC_ACM.c driver.

    You can use USBH CDC without CMSIS USART driver for CDC communicated directly by using USBH functions for example USBH_CDC_ACM_Send/USBH_CDC_ACM_Receive.

Children