cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX code generation from command line

dvescovi
Associate III

I would like to automate code generation of my .ioc file using CubeMX from command line or PowerShell.

AI says its possible with the -q (quiet mode) option but it does not seem to work.

2 REPLIES 2
Souhaib MAZHOUD
ST Employee

Hello @dvescovi 

Yes, as stated in UM1718 "3.3.2 Running STM32CubeMX in command-line mode" you can run STM32CubeMX in command-line mode without UI:

– On Windows:
cd <STM32CubeMX installation path>
jre\bin\java -jar STM32CubeMX.exe –q <script filename>
– On Linux and macOS:
./STM32CubeMX –q <script filename


 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Andrew Neil
Super User

@dvescovi wrote:

AI says its possible with the -q (quiet mode) option but it does not seem to work.


What version are you using?

Please show the command you actually used, and the results you got.

 

How to write your question to maximize your chances to find a solution

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.