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 extract the compilation date/time using the "current_date" symbol

I need to embed the date/time of firmware compilation into the firmware in a certain format - 1byte for day, 1 byte for month etc.
I’ve added the symbols in the “Path and symbols” window in the project properties:
Symbol: BUILD_DAY
Value: ${current_date:~6,2}

But it resolves to $F9

What am I doing wrong?


I use this symbol in a const array, which is placed at a defined address in the flash. It works properly, I can change the value of the symbol and it appears where it is supposed to be