Skip to main content
Associate III
April 19, 2024
Question

Generating makefiles without STM32IDE

  • April 19, 2024
  • 1 reply
  • 2948 views

So I've moved away from eclipse and the CubeMX IDE. 
I am using sublime as my editor and I am enjoying a great deal of success and I would recommend to anyone using cubemx to migrate to a non java based IDE/editor  - I compile the makefiles generated from CubeMX IDE and upload using STM32_Programmer_CLI directly from sublime.
Therefore, as I want to forgo eclipse (except for debugging, the build analyser, and a few nice tools within) 
My questions are:

How does CUBEMX generate the makefiles. (I assume it requires the .mxproject and or .cproject files but I would be happy to edit those myself if required)

Can I run a command/script to achieve the same end? 

If not, it appears that CUBEMX only updates the makefiles when you perform a build. Can I at least stop compilation when running Debug/Build?

Thanks for any suggestions
+ sorry for initially posting this in the wrong part of the forum

This topic has been closed for replies.

1 reply

Peter BENSCH
Technical Moderator
April 19, 2024

You are confusing CubeMX and CubeIDE:

  • STM32CubeMX, which is also available as stand-alone software, only does the configuration and can then generate make files or the projects for various compilers
  • STM32CubeIDE is the complete package, which also contains the compiler, debugger, etc. in addition to CubeMX

Actually, it should be enough if you only install CubeMX and use its generated source code and e.g. the makefile - unless you don't want to use a Java-based tool at all.

Hope that helps?

Regards
/Peter

Associate III
April 19, 2024

Thanks Peter. Sorry about the incorrect name of the IDE.:(
Doesn't CubeMx (not CubeIDE in this instance) only generate your first draught (from an .ioc file)?
Then any changes are handled in STM32IDE, no?
What if I am continuously change the codebase? (I don't use .ioc anymore)

Thanks for the support

Andrew Neil
Super User
April 19, 2024

@Claydonkey wrote:

Then any changes are handled in STM32IDE, no?


Depends what you mean by "changes".

If you go back to CubeMX (or the equivalent within CubeIDE), make changes there, and re-generate then that will update the existing project.

Other changes to the project, eg, adding/removing/reorganising source files) are handled by CubeIDE.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.