2025-12-08 7:18 AM - last edited on 2025-12-08 7:45 AM by Andrew Neil
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.
2025-12-08 7:37 AM - edited 2025-12-08 7:38 AM
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.
2025-12-08 7:47 AM
@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