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


Not allowing to add header files in Inc folder

Hello All,

I am learning a course on Udemy about programming STM32 micro-controller and course uses OpenSTM32 software as IDE. CubeMX software only used for generating the project template and driver files, after generating project from CubeMX, main.c, it.c, msp.c, main.h, it.h all will be deleted and everything will be coded by user (Not using any of the auto generated code).

This is the CubeMX generated file tree has header files in Inc folder.

Image

But I cant add any of my header files to the same folder. If I right click Inc folder, there is only option to add files. I think I can choose this option and name the file as main.h for example. But is there a better way ?

3

I can add Source files & header files (.c) to Src folder. When I right click Src folder there is an option to add these files

2

Even if I select File >> New >> Header file: I cannot set Inc as the location where file needs to be created, Error is specified folder is not a source folder.

4

I think the instructor is using an older version of CubeMX & OpenSTM32 Workbench.

I have checked “Generate under root” option in CubeMX.

Here the C++ Include paths,
5

Thanks

 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs