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


Why does a new empty F4 project with USB-Device_Lib not build?

EDITED

When I select USB_Device_Library to be included in my new project created by STM32Cube_FW_F4_V1.11.0 (not STM32CubeMX version 4.14) for F4Discovery with HAL, I find that a Middleware folder is placed in the stm32f4discovery_hal_lib project folder preventing it build - due to unedited templates etc.

An empty project should build, or be with an instruction.txt file at the root level explaining how the use the USB_Device library so that is does build!!!!

Should I tick checkbox to exclude from build the Middleware folder , then copy only the files I need (e.g CDC class files) from middleware into my own project like in the examples of usb_device projects?

Can someone please say how middleware is supposed to be used so that I can start with something that compiles.

Hi

There is a bug. A header file created by CubeMX has wrongly capitalization.

/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc/USBD_CDC.h

Copy the file to one with lower case name.

If not referred to, the files in Middelware gets not compiled, at least not linked.

Dieter

Thank you Dieter, I will fix that and retry.
Bob

EDIT - I believe this bug is already fixed in in the latest STM32CubeMX version 4.14 code that is generated for the STM32 F4Discovery.


 

Newest Forum Posts

  1. New installations is now uploaded ! by karushifa, 2025-12-25 00:53
  2. Analog servomotors with nucleo f334r8 by SkelePaw, 2025-11-01 05:57
  3. STM32 MCU model shortlisting for Making RC remote by Palvish, 2025-07-07 15:05
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  6. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  7. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  8. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05

Last-Modified Blogs