Skip to main content
Visitor II
January 30, 2022
Solved

STM32L4xx USB Composite Device

  • January 30, 2022
  • 1 reply
  • 1100 views

Hello everyone, I am making a USB Composite Device according to the article - https://sudonull.com/post/68144-CDC-MSC-USB-Composite-Device-on-STM32-HAL. I use stm32l4xx, instead of the HAL_PCDEx_PMAConfig() functions, I use the HAL_PCDEx_SetTxFiFo()/HAL_PCDEx_SetRxFiFo() functions. Could you tell me how to configure them correctly for Composite USB? And for what parameters are these functions responsible? Thanks in advance.

    This topic has been closed for replies.
    Best answer by Imen.D

    Hello @alfinikov​ ,

    I advise you to refer the working USB application available under STM32CubeL4 MCU package.

    Have a look at this UM1734 User manual STM32Cube™ USB device library

     For more details on how to use the PCD driver, please refer to UM1725 that describes all PCD driver APIs (in HAL PCD Extension Drive section).

     0693W00000JO9qjQAD.jpgWhen your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

    Imen

    1 reply

    Imen.DAnswer
    Technical Moderator
    February 1, 2022

    Hello @alfinikov​ ,

    I advise you to refer the working USB application available under STM32CubeL4 MCU package.

    Have a look at this UM1734 User manual STM32Cube™ USB device library

     For more details on how to use the PCD driver, please refer to UM1725 that describes all PCD driver APIs (in HAL PCD Extension Drive section).

     0693W00000JO9qjQAD.jpgWhen your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

    Imen