Forum: System Workbench for STM32

empty project using HAL and USB device middleware

Hi guys!

I am new to the STM32 family and tried to start an empty example project. With your step through by clicking New- -> c-project, I thought this goes pretty well. But when I just want to compile the main I get the error, that “usbd_conf.h” is not found?

SW4STM32 is up to date and i am using an NUCLEO-64 with an STM32F446RE

best regards

Benni

Try to start with CubeMX.
As soon as you set USB interface available, it immediatly will open a set of USB devices available for your chip. You justl need to choose the one you want to use.


when I run CubeMX and select the Nucleo-64 STM32F446RE I get an unresolvable error in the clock configuration. Seems as if the chip expects an HSE input. but why that? I can also achieve the respective Clocks with the onboard HSI..
and isn’t it possible to create a project with HAL without using CubeMX? After all the Nucleo-64 board description doesn’t say something about USB restrictions..

ok, i ignored the fault and generated the code but it’s not really working.
What would anyone suggest for a good starting point to evaluate the module step by step. CubeMX looks really great, but its also so powerfull that I need to make small steps in the beginnig. Are there some working examples?

when I run CubeMX and select the Nucleo-64 STM32F446RE I get an unresolvable error in the clock configuration. Seems as if the chip expects an HSE input. but why that?
I checked CubeMX for your board. Seems like HSE is not possible to use. Probably some peripheral use XTAL pins on this board.

isn’t it possible to create a project with HAL without using CubeMX?
It is possible, but CubeMX makes life easy with building all initialization and creating a starting point project.

a good starting point to evaluate the module step by step
Download CubeF4 from the ST side. It provides a lot of good demos.