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


Defining a Macro to Return the Number of Elements in an Array

How are you able to get the compiler to accept the sizeof operator in your macro? When I do it I get these errors:

invalid application of ‘sizeof’ to incomplete type ‘const float[]’
invalid application of ‘sizeof’ to incomplete type ‘const uint16_t[]’
invalid application of ‘sizeof’ to incomplete type ‘const uint32_t[]’