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


Can't get example working in a STM32CubeMX project

Hi,

I have a STM32412G-Discovery board and I can successfully get examples working. I can also export examples and place them in new directories (which took me some time to figure out!) by amending paths and copying source and include files to my new directory.

I can also generate code with STM32CubeMX and write programs using the HAL library.

The really annoying problem I have is that I can’t get the examples working in the STM32CubeMX project. I must be missing something because it would be pointless having examples if they could not work with a STM32CubeMX project, wouldn’t it?

I have tried amending paths but it doesn’t seem to work - is there a tutorial that shows how to get examples working in a STM32CubeMX project? I have looked but have not found one.

Actually most of the STM32CubeMx examples already have a project (i.e. .cproject ) and you just import them into the workspace, just be aware that they use links (for the location of the c files) for most of the source code.

I have just read back my question and it is not clear, sorry. I will clarify.

I want to set up a clean STM32CubeMX project which only uses the peripherals I configure in STM32CubeMX. In that new project, I want to use code from the example, for instance the following line:

BSP_LED_Init(LED1);

The problem is that LED1 causes an error which I have not yet successfully fixed as it appears in many of the source and header files.

In the new project I have used STM32CubeMX to set up the chip as an STM32412G-Discovery board. I hoped that it would just work, but it doesn’t. A step by step tutorial on getting this process to work would be really useful...


 

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