AnsweredAssumed Answered

STM32CubeF4 CDC HOST

Question asked by pini.lorenzo on Apr 1, 2015
Latest reply on Feb 14, 2016 by McMarkus
Hi 

I'm using STM32Cubef4 USB Host CDC library on STM32F429I-Discovery.
I have problem to connect a FTDI device.

The USB host process return HOST_ABORT_STATE because the FTDI class is 0xFF (Vendor specific) and CDC class is 0x02.

in usbh_core.c

for (idx = 0; idx < USBH_MAX_NUM_SUPPORTED_CLASS ; idx ++)
      {
        if(phost->pClass[idx]->ClassCode == phost->device.CfgDesc.Itf_Desc[0].bInterfaceClass)
        {
 
          phost->pActiveClass = phost->pClass[idx];
        }
      }
       
      if(phost->pActiveClass != NULL)
      {
        if(phost->pActiveClass->Init(phost)== USBH_OK)
        {
          phost->gState  = HOST_CLASS_REQUEST;
          USBH_UsrLog ("%s class started.", phost->pActiveClass->Name);
           
          /* Inform user that a class has been activated */
          phost->pUser(phost, HOST_USER_CLASS_SELECTED);  
        }
        else
        {
          phost->gState  = HOST_ABORT_STATE;
          USBH_UsrLog ("Device not supporting %s class.", phost->pActiveClass->Name);
        }
      }
      else
      {
        phost->gState  = HOST_ABORT_STATE;
        USBH_UsrLog ("No registered class for this device.");
      }
    }


There are any solution to connect with a FTDI? (or orher device with Vendor specific class)

Outcomes