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


How on earth do you include a C file and its header file?

It is so unbelievably, ridiculously, and possibly impossible to do something as simple as just including a folder that has a C file and its header into my project and having it actually importable in my main.c.

I’m trying to simply modify this project: http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-ode-function-pack-sw/fp-sns-allmems1.html?ecmp=tt4023_gl_enews_aug2016Question

I’m using the STM32L476G Nucleo project and I’m trying include the cross-platform LIS3DH drivers into the project http://www.st.com/content/st_com/en/products/embedded-software/mems-and-sensors-software/drivers-for-mems/stsw-mems006.htmlQuestion

While trying to implement the LIS3DH driver read and write functions in I2C, I’m trying to get my lis3dh_driver.c to be able to include

  1. include “stm32l4xx_hal_i2c.h”
  2. include “lis3dh_driver.h”


But I am just simply left with tons of errors saying that MEMS_ERROR cannot be resolved, which is weird because lis3dh_driver.h has that defined and random HAL I2C errors like “expected ‘,’ or ‘;’ before ‘HAL_FLASHEx_DisableRunPowerDown’.

What do I need to do to get main.c to be able to see lis3dh_driver.h, and get lis3dh_driver.c to see lis3dh_driver.h and stm32l4xx_hal_i2c.h?

France

For the most part “cannot be resolved” errors are just generated by Eclipse when a given symbol is defined in several header files, although only one is used in your source code.

Just look at this FAQ entryQuestion for how to correct this.

Bernard (Ac6)


 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  2. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  3. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  5. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  6. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  8. Build a project in "release" mode by tang, 2025-02-20 10:36
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35
  10. Fail to debug in Win 11 C/C++ by mortenlund, 2024-12-26 20:27

Last-Modified Blogs