We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
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
Hi Milorad Thanks for your reply.
The USB controller was configured correctly, but I didn't activte the global interrupt what is necessary in this case.
Now it's works.
Best regards, Alex
thanks for sharing your findings, perhaps it will be useful to somebody in future who stumbles upon same problem.