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


Rename projects ..Does that work ?

HI
Now i am getting more and more familiar witn openstm,and now i do want to rename some of the imported projects from cube exsamples.
It means that i did import, play around, re program and learn a lot from one project, and then want to import another one..
But it can not be done because they are named stm32f7-discovery all of them.

How do i rename a imported project without spoiling everything ?

AND important ..IF you make a clean after you imported from the cube exsamples you can not compile..But if you never hit clean - only make - everything is running smooth and will compile in first shot, and will debug also ...just for information ;o)

Great IDE with some small “issues”

Hjalmar

France

Hi Hjalmar,

Currently there is a bad interaction between the way projects are generated by CubeMX (which is the case of the provided example projects) and project renaming in Eclipse that cause these to fail renaming... We are working on that and will correct it in a future release.

If you want to try several examples, the best solution for now is to create new workspaces to import the second, third, etc. projects; we are working on a solution with ST, so that theer example projects have meaningful names.

Bernard

Hi Bernard,

any update on this?

Regards,
Michele

From what I have seen this is a general problem with C/C++ under eclipse. Eclipse was written for Java where ther is no concept of cross compilation and different versions of header and source files for different targets. Versioning under Java was a nightmare until tools like Mave were introduced.

It is extremely frustrating in this environment to use a previous project as a template for a new one.

It also is a side effect when e.g. using a git repository as an intermediate between differnt development machines, some of which run under different operating systems. This often happens when a development machine is upgraded, replaced or stolen.

What is probably needed is a better make system (cmake or autotools?) and perhaps a move away from the java centric eclipse environment.

Embitz has a nice feature ‘Import recursive’ which would be a nice to have in SW4STM32 it does not presuppose any existing make instructions from another IDE, just looks at compilable files in the filesystem it is given.

Precompiled libraries would also improve things, this is something that SW4STM32 seems to be working towards. Any Brown (http://andybrown.me.uk) has worked in this area fro a number of years and has some very nice C++ libs, perhaps he could be enticed by ST to move and include support for the Discovery boards with graphics/touch screens and newer HAL libs.



Hello everyone,

I tried the following steps to succesfuly rename a project:

1. Copy and paste the folder with the project in the desired location.
2. Change the name of the folder to the new name of the project (optional).
3. Delete the folders “Debug” and “Release” if they exist inside the project folder.
4. If you are using Cube rename the Cube File (.ioc) to the new name of the project. This is highly important. Otherwise cube will not be able to modify the new project.
5. Rename the CFG File which has the format “ProjectName Run”. Only replace the “ProjectName” with the new name. Keep the space character between both words.
6. Open the CPROJECT-File (usually has not a name assigned) with a text editor. Replace all instances of the old name of the project with the new name. Save and close the file.
7. Open the PROJECT-File (usually has not a name assigned) with a text editor. Replace all instances of the old name of the project with the new name. Save and close the file.
8. Open the project and compile it.
9. Flash the microcontroller.
10. If any error appears try by making a full build of the project: right click to the name of the project in the project explorer, then “Build Configurations” and finally “Build All”. Try flashing again.

It worked for me. I hope for you too!

Best regards,

Diego Ballen


Hi diego_ballen,

Thanks for your post. the step by step method you shared really helped me with my casinoQuestion sitesQuestion and projects regarding them. thank you.



Swaziland
this is a very interesting topic, but the updates have not been around for quite some time, if anyone has any news then i will be glad to hear them, thanks

If anyone has an update on this, that would be great. As a new user, it’s a bit weird to me that this hasn’t been addressed. Having a working example, and then copying it to make modifications that may be unstable so that I can compare and figure out why something doesn’t work seems like good coding practice to me.