cancel
Showing results for 
Search instead for 
Did you mean: 

USB Framework Custom HID bug on STM32F072

MMyar.1
Associate II

I followed the ST tuto here :

https://community.st.com/s/article/how-to-implement-a-usb-device-custom-hid-class-on-stm32-part2?t=1670342951456

I first tried it on a STM32F072BDISCOVERY board, for which it is written. Using this, I could send data, receive data, but the USB framework seems to crash when peforming send then receive data 2 o 3 times.

I then tried it on a STM32F407-disc1 and following the same tuto works like a charm. I guess there is a bug somewhere on the framework for Custom HID on STM32F072BDISCOVERY (but I didn't understand where). Can this been sent somewhere to be taken into account ?

3 REPLIES 3
Imen.D
ST Employee

Hello @MMyar.1​,

Please share more details about your issue. Try to debug and localize where the code hangs/stop and the kind of message gives.

Maybe you have the same issue as reported in this post. Please try the proposal fix and keep me informed about your update.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
MMyar.1
Associate II

I am sorry I have no time for this. I switched to another board for my application, which one works. If I have time later I will check. Thanks for the post.

MMyar.1
Associate II

I answer again, as I had drawbacks after a new update. Here is what I did post on other pages :

I have seen various problems with custom HID with various versions, notified at many places :

https://community.st.com/s/question/0D53W00000ttTa2SAE/what-is-the-issue-with-the-usb-custom-hid-low-level-driver?t=1672355984794

https://community.st.com/s/question/0D53W00000vQ4iASAS/issue-with-stm32wb55-usb-custom-hid-using-v1111-firmware-pack

https://community.st.com/s/article/how-to-implement-a-usb-device-custom-hid-class-on-stm32-part2

etc. It seems Custom HID implementation is not really taken seriously at ST.

What I find is that it depends a lot on the version of the Cube framework. People say that it works well with the 5.2 (but I was not able to install it on recent linux distribution), I found that it works on CubeMX 6.7 with Framework v. 1.11.0 but not with 1.11.3 for example. So you should not use "Use last version" but a given version. For me on a STM32F3-discovery it works well with 1.11.0 in custom HID.

Hope this helps,

Mike