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


Very strange problem extern "C" {} Does not work

g++ Not working properly

for example:

// a.h

  1. ifdef __cplusplus

extern “C” {

  1. endif

void a();

  1. ifdef __cplusplus

}

  1. endif


1:
// a.cpp

  1. include “a.h”

void a(){};

2:
// a.cpp

  1. include “a.h”

void extern “C” a(){};

1: a() is not available in GCC, 2: is available in GCC.

I do not know why?