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


STM32 doesn't built it's own projects

France

In this case, you should just have to exclude the Middlewares/ST/STemWin/Simulation folder from the build; it is delivered by Segger to allow compiling your GUI in Simulation mode on your Windows box but, obviously, should not be compiled for the target.

To do that you right click on the folder then Properties go to the C/C++ Build tab and select Exclude resource from build. Note furthermore that emWin can work either with or without FreeRTOS, so you must compile only one of the Middlewares/ST/STemWin/OS/GUI_X_OS.c (with RTOS) or GUI_X.c (without RTOS) using the same mechanism. You must also in Middlewares/ST/STemWin/Config, update GUIConf.h if needed (at least regarding the use of RTOS or not) and exclude all .c files (the templates and C files are just examples to use as a base when supporting your own board).

I just check it (with FreeRTOS) and it compiles. I can’t test it as I don’t have this board here but it should work, although not displaying anything as you have to at least provide something to display.

To go further I can only urge you to look at the STemWin sample project in the HAL firmware (just check the Extract all firmware in separate folder in the firmware selection tab when creating the project (this will take some time...) and look in the created (closed) STM32Cube_FW_F7_V1.7.0 project in Projects; However there is no simple demo application (in Applications) for the discovery board, for STemWin, just the full-fledged Demonstration that you can open by File >> Import... >> General >> Existing project into workspace, then select the proper sub-directory of the firmware project (Projects\STM32F769I-Discovery\Demonstration\SW4STM32\STM32F769I-Discovery_Demo in this case) and click OK. You then have a program that uses almost all possibilities of the board.

Another alternative when wanting to use additional firmwares is to have CubeMX generate the project and initialize things; it was developed just for that. Mbed may be an alternative also but it is currently not integrated so well with System Workbench for STM32 (we were not involved in this integration)

Anyway you can’t choose any selection of firmwares for a given evaluation board and then expect to get a working program just with the push of a button. There is quite a lot of documentation (for STemWin there is a detailed user manual in the provided folder) that you may have to read and understand before being able to create your own project “from scratch”.

Bernard (Ac6)

 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  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. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs