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


You are viewing a reply to Unknown Type Name error  

Unknown Type Name error

France

Hi Tim,

Is it possible that, directly or indirectly, usbh_def.h includes usbh_MIDI.h before defining USBH_ClassTypeDef, or usbh_core.h includes usbh_MIDI.h (again possibly indirectly) before including usbh_def.h ?

This kind of problem usually comes from incorrect cross-references between header files: as they are all protected by a “single include #ifdef” when an included file tries to include the file that includes it, this does nothing so only the definitions located before the recursive inclusion are visible...

Hope this helps,

Bernard (Ac6)

PS: You could try to add the -E flag to your compile line: instead of compiling your file, it will generate the preprocessed source code, with all includes “flattened” so you should understand why it does not work as expected.