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


Multitude of HAL_RCC not resolved errors

Hi, how did you import the project? Is it coming from CubeMX or from the HAL/FW package?
It seems the include paths are not set.
Import project from CubeMX
- Launch CubeMX >> New Project >> Board Selector tab >> Nucleo 64 STM32L476 board >> OK;
- Project menu >> Settings >> Toolchain / IDE = SW4STM32;
- Project menu >> Settings >> Project Location = C:\STM32_L4_Workspace (for example);
- Project menu >> Settings >> Project Name = L4_Blinky (for example);
- Enable the expected peripherals from the Pinout tab;
- Tune the clock frequencies from the Clock Configuration tab;
- Tune the peripheral configurations from the Configuration tab;
- Project menu >> Generate Code >> Close;
- Launch SW4STM32 and select the workspace (C:\STM32_L4_Workspace, for example);
- Right-click in the Project Explorer window >> Import >> General >> Existing Projects into Workspace >> Next >> Browse >> Select the project folder (L4_Blinky, for example) >> Finish

Import project from HAL/FW Package
- launch SW4STM32 and select the workspace (for example) :
...\STM32Cube_FW_L4_V1.5.0\Projects\STM32L476RG-Nucleo\Examples\GPIO\GPIO_IOToggle\SW4STM32\
- Right-click in the Project Explorer window >> Import >> General >> Existing Projects into Workspace >> Next >> Browse >> Select the project folder (for example ...\STM32Cube_FW_L4_V1.5.0\Projects\STM32L476RG-Nucleo\Examples\GPIO\GPIO_IOToggle\SW4STM32\STM32L476RG_NUCLEO folder) >> Finish
- Right-click on the STM32F4xx-Nucleo project >> Properties >> C/C++ General >> Indexer >> Enable project specific settings >> Remove the Index unused headers >> Apply >> OK
- Right-click on the STM32F4xx-Nucleo project >> Index >> Rebuild
- Right-click on the STM32F4xx-Nucleo project >> Build Project


SW4STM32 Tips & Tricks
- Right-click on the project >> Properties >> C/C++ Build >> Enable parallel build >> Apply >> OK
- Right-click on the project >> Properties >> C/C++ Build >> Settings >> MCU GCC Compiler >> Dialect >> Select the expected C standard (C99) >> Apply >> OK
- Right-click on the project >> Properties >> C/C++ General >> Indexer >> Enable project specific settings >> Remove the Index unused headers >> Apply >> OK
- Right-click on the project >> Index >> Rebuild
- Enable the notifications for the automatic updates in the Window menu :
Windows menu >> Preferences >> Install/Update >> Automatic Updates >> Enable automatically find new updates and notify me
- Configure the Network connection if you are using a proxy :
Windows menu >> General >> Network Connections
- Check fo updates : Help menu >> Check for Updates