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


Start with example

Hello,

I´m newbie in System Workbench for STM32. I bougt STM32F407 Discovery kit. I downloaded file en.stsw-stm32068.zip ( example for this board). They are many example for EWARM, TRUE STUDIO, TASKINK and MDK-ARM, but not for Workbench for STM32.

How do I import these examples to System Workbench for STM32 ?

Thanks

Peter

My OS: Windows 7 Prof
System Workbench for STM32 AC3 V1.14.0.201703061529

Hi,
I’m also a newbie, but I want to help you with what I can. I have imported a project from the ones in en.stsw-stm32068.zip
and made it work in AC6 (workbench for STM32). I cannot attach it here because it is 1362KB and maximum size here is 976.56.
If you want it send me a PM with some email address,
Anyway, the idea is simple, create a new project in AC6 and select the STM32F4-Discovery as your board, this will add the
correct configuration file and create a skeleton with all the necessary headers etc, almost. Into the includes, the “inc” folder you’ll
need to add the following file stm32f4xx_conf.h. This you can get from the project you want to import. You will also need to replace
the main.c with the one from the project you want to import. That’s it, you are done, build and it works. I tested with IO_Toggle and
it works without problems. I believe if you are using something with interrupts you will need to check the stm32f4xx_it.h and
stm32f4xx_it.c files I suppose. Or the USB OTG will need extra drivers etc, but you get the idea.
Anyway, as explained, I’m just starting to grasp this thing so this much is what I know. This forum is full with good advise and
ideas and it is a great place to learn.
I wish you luck.
RA


Hi,

thanks RA for his help. My “toogle example” work now.

But I tried another example: Audio_Playback. They are some directories:

STM32_USB_Device_Library
STM32_USB_HOST_Library
STM32_USB_OTG_Driver
Utilities

I copy them to my project directory and set them as “Source Folder”. Then I copy some file to directory “src” and “inc” (main.c, audio_sample.c, main.h,...).

I built the project. Is appeared: fatal error: stm32f4_discovery.h: No such file or directory

But the file is located in directory Utilities/STM32F4-Discovery in my project. So I added to “Includes” path Utilities/STM32F4-Discovery. But it did not help. Error remained the same.

Where is the problem? What am I doing wrong?


Hi,

Yesterday I received information that I missed. Examples for my board are located in two different places.

- examples for StdLib: in en.stsw-stm32068.zip
- examples for HAL_Lib: in STM32Cube_FW_F4_V1.15.0

The “HAL examples” are directly importable into System Workbench for STM32. This is the right way to begin with examples.
And this I did not know before.

Peter


 

Newest Forum Posts

  1. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  2. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  3. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  5. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  6. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  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