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


IDE error with enums

Symbols defined in with typedef enum appear not to be recognized by the IDE. This doesn’t seem to cause problems building UNLESS a dependent file is actually opened, at which point numerous errors are generated.

Here’s is an example with my slash and burn fix. But is there a better way?

// ADDED for Eclipse IDE
#define MEMS_SUCCESS 0x01
#define MEMS_ERROR 0x00
typedef enum {
MEMS_SUCCESS = 0x01,
MEMS_ERROR = 0x00
} status_t;

Version: Neon.3 Release (4.6.3)
Build id: 20170314-1500
System Workbench for STM32 - OpenOCD (for Windows 32bits)
Version: 1.13.2.201703061529
Build id: @build@