2021-04-25 01:06 PM
Hi there,
I have a Nucleo-H755ZI-Q and want to get the CDC driver working with USB_FS on the M4 core. I'm having an issue where USB_CoreReset() HAL function times-out waiting for the USB core to reset. Here's the steps I take to create the issue:
The M7 auto-generated project fails to build with "No rule to make target '../Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_eth.c"! .. But I'll tackle that issue later..
The M4 project builds and runs. The problem is in USB_CoreReset() at line 196 of stm32h7xx_ll_usb.c. Bit 0 of USBx->GRSTCTL never clears.
There doesn't seem to be a CDC example for this Nucleo. I have tried the same process for a Nucleo-F4 I have lying around, and it worked no problems.
Any help greatly appreciated.
Solved! Go to Solution.
2021-04-26 01:07 AM
Well, I found the issue. CubeMX does not have the ability to let the M4 configure the system clocks, as far as I can tell. It's always done in the M7 core. So I simply copied the clock config code from the M7 main.c to the M4 main.c, and it works.
2021-04-26 01:07 AM
Well, I found the issue. CubeMX does not have the ability to let the M4 configure the system clocks, as far as I can tell. It's always done in the M7 core. So I simply copied the clock config code from the M7 main.c to the M4 main.c, and it works.