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


Avoiding HAL in project wizard

Hello everyone

Another question came up.

When I make a project by selecting “Ac6 STM32 MCU Project” I end up with 3 choices:
- No firmware
- Standard Peripheral Library (StdPeriph)
- Hardware Abstraction Layer (Cube HAL)

I am running bare-metal in my current projects and therefore avoiding any HALs. But I can not select “Standard Peripheral Library”, it is grayed out. I have tried different approaches and different MCU’s without luck. Any one knows who to enable the option?

Regards
Sebastian Aslund

France

Hello,

Standard Peripheral Library (StdPeriph) availability in only triggered by selected target. All targets are Cube HAL aware but only a limited set of them are StdPeriph aware. StdPeriph are legacy material.

Just to x2 check, let’s try to select NUCLEO-F030R8 board target. Such should allow you to select StdPeriph option.

Br


France

Hi Sebastian,

What do you mean by “avoiding HAL for bare metal programming”?

If you really want to have no firmware at all, just select “No firmware”; otherwise you may have the choice between two different firmware libraries:

  1. Cube HAL:
    • This is the most recent set of firmware libraries, available on all MCUs
    • This is usually the library to use for new projects, except for special cases (for example if you are using it on other projects)
  2. StdPerih:
    • This is the legacy firmware library; it is no more developped (only bug fixes) and is not available for the newer MCU series (like L4 for example).
    • It is mainly meant to be used for existing projects that were initially developped using StdPeriph before HAL existed


Hope this clarifies things

Bernard (Ac6)