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

Keil USB Middleware not working with CubeMX

Hello I try to use Keil RTOS2 with CubeMX.

I got USB Host running with this combination. But I can't get Keil USB Device (CDC or HID) Middleware  running with CubeMX.

If I only use CubeMX+STM Middleware or only Keil RTE it's working. Everything is correctly detected in Windows. But it's not possible to get my custom Board(STM32F769BIT) running with  RTOS2 and the Hardware configured with CubeMX. Windows detect a device but it's not possible to get it installed.

I have no further ideas why this problem occurs. I hope someone have similiar problems or an idea to solve the problem.

Kind regards

Alex

Parents
  • Hi Alex,

    from what you have written it looks that either USB controller / PHY is not configured properly or that some pin (for example VBUS sensing) is not configured properly.

    If you have a working version then you should compare configuration of the USB registers and pins between working and non working version.

    You can also use http://www.keil.com/pack/doc/mw/USB/html/_u_s_b__device.html#usbd_debugging to add debug information to your application which might be helpful in determining the root cause of the problem.

    I suspect that simply because of missconfigured USB controller it does not even get the USB packets form the PC and it does not even communicate on the bus.

    Best regards, Milorad

Reply
  • Hi Alex,

    from what you have written it looks that either USB controller / PHY is not configured properly or that some pin (for example VBUS sensing) is not configured properly.

    If you have a working version then you should compare configuration of the USB registers and pins between working and non working version.

    You can also use http://www.keil.com/pack/doc/mw/USB/html/_u_s_b__device.html#usbd_debugging to add debug information to your application which might be helpful in determining the root cause of the problem.

    I suspect that simply because of missconfigured USB controller it does not even get the USB packets form the PC and it does not even communicate on the bus.

    Best regards, Milorad

Children