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


Relevant header included but fails with "unknown type"

I resolved this issue not long after posting.

The issue was inclusion order though I don’t understand why.

wifi.h ported from the example in my project appears to need to be included in main.c, and not main.h even though main.h is included in main.c. This is not consistent with the example but at least it works..

France

Hi Mikael,

I think the problem is not related to include order but to where exactly is the wifi.h file and how it is included. I suspect wifi.h to be in the same directory as main.c, while main.h is in another directory. If you do the include using quotes, then the compiler search first alongsides the file that do the include, so including from main.c may work while from main.h it may fail.

Note also that projects generated from CubeMX tend to include linked files, that appear at one place in the project explorer but are ine fact somewhere else on the disk... This may cause the same kind of problems.

To check for this you should look at your project directory from the Windows file explorer to check where exactly are located the files (you may also check a specific file by right-clicking it in the project explorer then “Properties...”, if it’s a linked file it will be shown in the first tab).

Hope this helps clarifying things,

Bernard (Ac6)


 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  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. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs