STM32MP1 support available in SW4STM32

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world.
And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4; you can download a short video showcasing this on the ac6-tools website (registration required).

System Workbench for STM32

Trying to make a USB HID mouse from cube mx

strange cube mx usb hid should work out of the box !

at least it did for me on f4discovery and cusomized nucleof401
make sure to select the “righ”t usb ie FS (for f4) o but it could be HS if both present on that board ( even use only an low speed)
make sure to setup RCC to have 48Mhz clock on USB source “48MHz clock” on cubemx
using internal osc (HSI) may not give stable/precise enought USB clock
for HID it seam ok (it wan’t for CDC) best is to use HSE and have external 8Mhz crystal