Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   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 get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


Trying to make a USB HID mouse from cube mx

i have tryed to make working an usb hid mouse program (simulating mouse move) from cubemx,
folowing youtube stm sample:
https://www.youtube.com/watch?v=XRocqTfUxboQuestion

my platform is STM32F746DISCO
cubemx 1.5.1

i have also added blinking led: this part is working, the usb part don’t do anything, the mouse isn’t view when i connect it on the PC (no enumeration) and of course no mouse movement

i attached the main.c
i have tryed to add # USE_USB_FS in the Precompiler but nothing more!

help me please i am out of idea

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


hi,
i have changed the platform to STM32F3disco and STM32F4 disco and it’s booth working, so it’s somthing with configuration or package of the STM32F7disco....?



Hi, I tried to generate a project for F746G-DISCO from CubeMX but there is an issue with the USB clock.
In CubeMX, for F746G-DISCO, either (in USB_OTG_FS), the USB clock is not in between 47.88MHZ and 48.12MHz,
or (in USB_OTG_HS), the USB clock is greyed.
How did you activate the USB clock?


hi,
in the cubemx
menu pinout/Peripherals/RCC/ chose for High speed clock(HSE) :Crystal/Ceramic Resonator

after that you go in the menu clock configuration and the autoconf find the good solution.
(by activating HSE).
tell me if you got some solution, the example usb_OTG_fs and hs is working for me but when i make the project under cubemx its not.given is workin


Eureka!!

i have find the problem: its coming from the usbd_conf.c

2 values are wrong in the file generated by the cube!


USBD_StatusTypeDef USBD_LL_Init (USBD_HandleTypeDef *pdev)
{
....
hpcd_USB_OTG_FS.Init.dev_endpoints = 6;//