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


How to open an existing project?

Hi,

This project from the Github only has the source codes. It is not configured for any IDE which means you can’t open it or import it on System Workbench.

What you can do is to create a new project, copy the sources into the project then configure it (which might be quite tricky for new Eclipse users).
- Go to File > New > C Project, Select “Empty Project” in Executable, and the “Ac6 STM32 MCU GCC” toolchain. Enter your project name then Next
- In the “Select Configuration” page just push Next
- Select the target board, this project seems to be for a STM32L476G-EVAL board (STM32L4 Series), then Next
- Keep “No Firmware” checked then Next
- On the newly created project, copy all the sources files. Then you have to configure the project settings.
- Right-click on the “boot” and “periph” folders, Resourses configuration > Exclude from build, then deselect all. (This step is important as the folders have *.c or *.S files which needs to be built)
- Add the includes folder paths (= -I flags for gcc command) : Right-click on the project then Properties > C/C++ General > Paths and Symbols. On the “Includes” tab, Click the “Add...” button, then check every options, then click on “Workspace...” and find the folder which has the headers.

All these settings are saved into a “.project” and “.cproject” files which is what Eclipse can open/import.

I put my files in attachment so that you can quickly import the project without do all the steps below.
- Copy the file in the folder where the sources are, probably “ls027b7dh01”
- On System Workbench, File > Import... > General > Existing project. Browse the “ls027b7dh01” location, check the found project and the “Copy projects into workspace” option. Then click on Finish the import the project.

Hope it helps,
Regards,

Kevin
ac6

 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  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. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  8. Build a project in "release" mode by tang, 2025-02-20 10:36
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35
  10. Fail to debug in Win 11 C/C++ by mortenlund, 2024-12-26 20:27

Last-Modified Blogs