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

USB endpoint configuration (Control Transfer)

Dear readers,

I’m developing a USB interface with KEIL MDK Plus (V5.35) and the STM32CubeMX (V6.5) tool.

Is it possible to configure endpoint 0 to a message pipe resp. to a control transfer type ? The Run-Time Environment looks like:

In principle it should be possible to edit BMAttributes = 0 (=control) but I think this is not supported by the library ? At least it is not a standard in the CustomClass_0.h file:

The reason is the used WinUSB driver  which can't access the "WinUsb_ControlTransfer" function.

Thanks in advance!

Best regards

Norbert

Parents
  • Hi Norbert.

    From your screenshot it is obvious you have already MDK-Middleware pack installed, so you can just search for WinUSB_Test.exe on your local machine starting from root where you have Keil MDK installed.
    Root of Keil MDK would usually be on your C drive in C:\Keil or C:\Keil_v5
    Also, there is an example on how to use WinUSB it is called WinUSB_Echo and available for many devices, however unfortunately not for the one you are using (STM32F3) but closest one you could use for reference is STM32F4 series.
    You can find that example via Pack Installer or also searching for it, but you have to install STM32F4xx_DFP pack.

    Best regards, Milorad

Reply
  • Hi Norbert.

    From your screenshot it is obvious you have already MDK-Middleware pack installed, so you can just search for WinUSB_Test.exe on your local machine starting from root where you have Keil MDK installed.
    Root of Keil MDK would usually be on your C drive in C:\Keil or C:\Keil_v5
    Also, there is an example on how to use WinUSB it is called WinUSB_Echo and available for many devices, however unfortunately not for the one you are using (STM32F3) but closest one you could use for reference is STM32F4 series.
    You can find that example via Pack Installer or also searching for it, but you have to install STM32F4xx_DFP pack.

    Best regards, Milorad

Children