Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

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.



 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs