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


Eclipse Scraps Resources At Will

I have come across a fact that Eclipse scraps .c files of which header files are left intact in the project tree. This is not normal. What happened here?

The project was created starting from GNU ARM toolchain wizard ‘empty project’ instead of ‘Blinky_led’, not from an Ac6 project creation wizard. Still, what is the reason Eclipse scraps the .c files?

It is normal because you create empty project without and peripheral is used, therefore they do not know which peripheral you want to use in your project,
and It is not good to include all the standard peripheral library to your project it is not efficient
But Eclipse helped them to make this easy, How ?
Is by excluding the files from the build configuration
and therefor you see it inactive.
How to solve this ???
Go to the file you want to add it to the project Right Click -> Resource Configuration -> Exclude from Build -> the un check the checkbox

then we will see the file is active “without the dash line on the icon”



Best Regards
Eng.mazen


Could be because it’s an empty project however that would be a unacceptable haphazard by eclipse. I have come to the conclusion that eclipse is a ‘dumb’ IDE tool and has its illogic ways of acting. These .c files should never be crossed out bu default.

I looked around still and found the answer in Project => Properties => C/C++ Build General => Paths and Symbols -> Source Locations: selecting paths and Edit Filter, while making sure the Filter is ‘Empty’.

Yes, it is good to include the Standard Peripheral Library in the beginning of learning using and understanding compiling C code or whatver code. Everything is in one package and the beginner has oversight over the situation. All beginners must start this way before spreading stuff around not knowing where is what and what is used. Dependencies are a pain for every beginner. The concept of dependencies is what is overlooked in Arduino. Many Arduino people find themselves in unsurmountable trouble once entering the ARM zone and Eclipse with its unpredictable quircks. Soon C-code might be defunct and the connoisseur/enthusiast will be left completely at a loss with C++ code’s bloating coding protocols. Anyway, that’s another story.

Your solution ‘Right Click -> Resource Configuration -> Exclude from Build -> the un check the checkbox’ makes me the more aware how an Eclipse setting can be changed from several different Eclipse setting options. Very user unfriendly, but that’s also another story. There’s still a lot to be done to reduce forum clog.


 

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