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 Milorad Cvjetkovic

    Thanks for your reply

    //////////////////////////////////////////////////////////

    I use sample program "">www.keil.com/.../host_cdc_tutorial.html"

    My problem is "USBH_CDC_ACM_GetDeviceStatus" function is not working,
    May be can't detect usb device connection

    How can I fix
    When I use keil debugger, i can't debug into.

    //////////////////////////////////////////////////////////

    In these sample i don't use MCBSTM32F400 board and STM32F407IGHx mcu
    I use stm32f207vct mcu and my own board equipped with USB

    When I make cdc host and cdc device program using CubeMX,
    connect board each other via USB port using my board

    usb detection,
    send data and receive : USBH_CDC_Transmit,USBH_CDC_Receive, CDC_Transmit_FS function
    working very good

    //////////////////////////////////////////////////////////

Reply
  • Hi Milorad Cvjetkovic

    Thanks for your reply

    //////////////////////////////////////////////////////////

    I use sample program "">www.keil.com/.../host_cdc_tutorial.html"

    My problem is "USBH_CDC_ACM_GetDeviceStatus" function is not working,
    May be can't detect usb device connection

    How can I fix
    When I use keil debugger, i can't debug into.

    //////////////////////////////////////////////////////////

    In these sample i don't use MCBSTM32F400 board and STM32F407IGHx mcu
    I use stm32f207vct mcu and my own board equipped with USB

    When I make cdc host and cdc device program using CubeMX,
    connect board each other via USB port using my board

    usb detection,
    send data and receive : USBH_CDC_Transmit,USBH_CDC_Receive, CDC_Transmit_FS function
    working very good

    //////////////////////////////////////////////////////////

Children