Is it possible to clean and build a STM32CubeIDE project from the command line, e.g. from a bash script? Preferrably without GUI...
You can do it with Eclipse but it doesn't seems to work for CubeIDE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-04 1:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-04 5:11 AM
Of course. The IDE is just calling the compiler and linker. If you call the same commands with the same environment, it'll work. Might take some work to get set up correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-04 5:38 AM
Isn't there an option to generate a makefile?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-04 6:56 AM
Well, thats my problem, the makefile is auto-generated in the Debug directory. That directory you don't want to check in to git. So if you check out the project first time, there is no makefile. First you have to open CubeMX and build the project. There is an option for Eclipse (eclipsec.exe -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data C:\workspace -build MyProject/Debug) but it doesn't seems to work for CubeMX.
And of course, there is the option to write your own makefile as TDK suggested but I try easier options first....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-04 3:28 PM
Google Eclipse headless build
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-05 12:10 AM
Forget it, I go for the makefile solution.
Thx for the replies...
