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


CubeMX Repository Project Applications Not Compiling

Greets to all SW4STM32 CubeMX Repository and CubeMX users,

STM32F407VGT-DISCOVERY: As practical says practical goes. So let’s learn by example. Examples such as delivered by ST along the CubeMX tool’s Repository: STM32Cube folder => Repository folder => STM32Cube_FW_F4_V1.11.0 folder => Projects folder => etc ...

Once I imported the project (see screenshots attached) the Eclipse SW4STM32 already starts shaking and getting eyewide.

Among the many other Eclipse slurs the Eclipse SW4STM32 compiler says:

“make: *** No rule to make target `/home/benoit/STM32Cube/Repository/STM32Cube_FW_F4_V1.11.0/Middlewares/ST/STM32_USB_HOST_Library/Core/Src/usbh_core.c’, needed by `Middlewares/STM32_USBH_Library/Core/usbh_core.o’. Stop.”

when I hit the hammer.

Why is that? The readme.txt files simply states recompiling and running is sufficient.

What is missing here?

Sequence of events on attached screenshots.

.
.
.

Problem persists with index rebuilding etc etc ... that’s just doing nothing.

The path of some includes has the wrong capitalization e.g., HOST instead of Host, inc instead of Inc, etc. The project compiles after changing this (Properties -> Settings -> Tool Settings -> Includes)

PS. Sorry, I didn’t see your next post regarding the includes.


I’ve been working to get shit working with Eclipse all day yesterday, always such a struggle with stm. So today I figured why not just get SW4STM32 and it should work out of the box. Well, it doesn’t.

I’m having the exact same issue as you do. I bought an STM32F0 discovery board with an STM32F072 for USB, try to import the CDC VCP sample, and get this error.

My post doesn’t help ya, but if I find something I’ll let you know...

edit: well, I can ‘succesfully’ build a CubeMX project, or atleast a couple of steps further, it ends with some errors regarding Debug/object.list, but does produce an .elf, which can be flashed to and run on device. Perhaps you or I can use that project to get this example working ....


Ok so the cause for me was that I had copied the project folder elsewhere. No matter how hard I tried adding the paths again, it would always fail.

For you, I guess the problem was that the import function (by default?) copies the project into the workspace/ folder. If you ‘import’ it with the copy function disabled, it should work out of the box..

The last post by Ozi is true. The problem is that all of the paths in the project and within the header and source files depend on the repo structure. What is worse is that many of the project examples and applications all have the same project name so you can’t import more than one at a time in the same workset. Changing the project name once the import is done is a bad idea since the project name is also used for the directory structure and doing so will break the paths. Even worse is that importing without copying the files means that the build takes place in the repo so any changes you make change the contents of the repo. Next time you update the repo with a new version all of your old code is in the old repo so little is gained unles you use a tool like unison or meld that can merge changes ... carefully. Again worse if you use the repo in situe then you have to archive the whole thing unless you want to go through the painful task of deleting code you think you did not use. The repo examples and apps are really a look but don’t touch affair. I have had some success cutting and pasting repo example code into a CubeMX created project. But even that is daughnting as it is easy to miss duplication of defines and often hard to track down due to very ambiguous error reporting. I have yet to find an easy way to import repo code after creating a CubeMX project which is imported first. I have built all the examples and apps for F746-Discovery in the repo and I think all but one worked without a hitch.

 

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