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


Shows errors but compiles sucessfull

Hi,

i have some trouble with the new Version from 17.05 2015.
I compiled an working C++ Project and get 27 Errors (problems) but it seems that the project is succesfully compiled.

Any ideas?


Greetz
Oliver

Hi,

here some more information. I have this this files COscillator.cpp and COscillator.h .The .h file is included into the COscillator.cpp and the main.cpp file. In main i create a COscillator object and call some public methods.

I the main i get the following error:
Type ‘COscillator’ could not be resolved

But the compiler creates the .elf file which is fully working.

Anyy ideas?
I deleted the 2 files and wrote them new. Same problem. The Project was running with the previous version of System workbench without problems.

Any ideas?

Greetz
Oliver


It seems all my projects have this problem since the new 2017 2.0 version. There are 64 error but building was OK. All error are constants not found in code gernerated by CubeMX. ctrl-click on the variabes or constants does work.
Cleaning and close the project helps sometimes but problems are back after building again.
It is realy anoying because real errors are hard to find between them.
The real errors are displayed with a different red cross.

Hi,

i created a new project and copied the the old files into the new project. Now the errors were gone.

greetz

Oliver


France

Hi Oliver,

These errors occur when Eclipse had problems indexing your project. To correct it you can just right-click on the project then “Index >> Rebuild” and, after a few seconds, the errors should disapear.

Hope this helps,

Bernard (Ac6)

Hi Bernard,

i habe tried the index rebuild several times before only importing the files in a new project ssolved the issue.

Greetz

Oliver


Hi Bernard,

i habe tried the index rebuild several times before only importing the files in a new project ssolved the issue.

Greetz

Oliver


This is quite a common occurrence with Eclipse.

If just rebuilding the index doesn’t work, try also a clean & rebuild of the entire project; refreshing the project; closing & re-opening the project; restarting Eclipse; etc ...


 

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