Skip to main content
FS.1
Associate III
August 27, 2021
Question

does not start in interactive command-line mode or script mode

  • August 27, 2021
  • 8 replies
  • 2143 views

When I try (as stated in the CubeMX handbook Section 3.3.2)

cd "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\"
java.exe -jar STM32CubeMX.exe -i

or

java -jar "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe" -q cubeMxGenerate

with cubeMXGenerate just containing

config load myconfig.ioc

the GUI comes up all the time.

I would expect that the command-line mode would work without a GUI and thus can be run on a CI server for example. Is that a known issue to be fixed?

This topic has been closed for replies.

8 replies

Khouloud ZEMMELI
ST Employee
August 27, 2021

Hello @FS.1​ ,

Thank you for your post,

I'll check the point and I'll get back to you.

Khouloud

Khouloud ZEMMELI
ST Employee
August 27, 2021

Hi again @FS.1​ ,

I have checked from my side using the latest CubeMX version (6.3.0) and I cannot reproduce the issue.

Could you please switch to the latest release and tell me if it works fine for your or not?

Otherwise, could you please give me more details about your machine and share the script used with your ioc file?

Thanks, Khouloud

FS.1
FS.1Author
Associate III
August 27, 2021

Hi,

thanks for testing.

I just upgraded to 6.3.0 and

java -jar "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe" -i

starts CubeMX GUI in version 6.3.0.

No interactive console.

Java ist the following:

> java --version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)

Khouloud ZEMMELI
ST Employee
August 27, 2021

Hello @FS.1​ 

Please use the following command :

C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX>jre\bin\java.exe -jar STM32CubeMX.exe -q your_script

Thanks, Khouloud

George Small
Associate
January 13, 2022

Any update on this? I'd like to use this feature as well but am having the same issue. I'm testing on version 6.3.0.

George Small
Associate
January 23, 2022

Anyone...?