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


USB Device support for STM32F103

I am trying to use Eclipse to program the ‘Blue Pill’ board that uses a STM32F103 processor. I followed the following post to install the tools for Eclipse:

https://www.onetransistor.eu/2017/11/stm32-bluepill-arduino-ide.htmlQuestion

I was able to install the tools and build a simple project which flashes the LED. I was also able to download the .bin file to the board and the program seemed to work.

I then tried to create a project which included the STM32 USB Device Library. However, if I try and compile this project I find that the file ‘usbd_conf.h” is missing.

Looking in this forum, I have found people saying that I need to use CubeMX to create the file. I have installed that software, but cannot figure out how to get it to create the needed file.

Can anyone explain how obtain/create the usbd_conf.h file for my STM32F103 processor?

Thank.

In the pinout page with the MCU in the middle, On the left side with all the peripherals, down the bottom enable the USB.
Then up the top in the middlewares for the class, select what class of device you want - Communication Device Class, Human Interface device etc.
This will then give the configuration (_conf) and class interface (_if) files required.

Also - R10 on the blue pill - a pull up resistor on D+ may need to be reduced to 1.5 k to work with your USB port. My laptops are ok with 10 k, but my 2006 desktop needs a lower value pull up.
See wiki dot stm32duino dot com/index.php?title=Blue_Pill (hopefully the board doesn’t cull that butchered URL.


Thanks for the feedback. I was never able to get the project generated by Eclipse to work. I was, however, finally able to figure out how to import the project generated by STM32CubeMX into Eclipse and I have that working.

 

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