cancel
Showing results for 
Search instead for 
Did you mean: 

Installation Issues - Infinite Loop

thayden
Associate II

I've got a brand new VM running Windows 11 pretty much off the shelf. I can install and run Cube IDE but when I try to install the STM32CubeProgrammer (64 bit version) I get into an infinite loop where the following happens:

- It opens the Install Wizard which then closes

- It opens the blue "STM32 Cube Programmer" window, which then closes

- It opens the Install Wizard which then closes

Here is a video of the behavior: https://www.loom.com/share/b3ce5e7a79ad425d840296845fd0c1ed

The only way I can exit this loop is to reset the whole machine. It's not installed, so I can't uninstall it. I tried removing everything, upgrading java, and still the same problem. Any suggestions would be appreciated. Thank you!

12 REPLIES 12
Maryem
ST Employee

Hello @thayden,

 

Sorry for the late reply. 

I have tested the installation of STM32CubeProg 2.15.0 on Windows 11 and did not encounter the issue described. I even tried with a freshly installed VM, and everything seems to be working fine. Did the same behavior occur with older versions ?

 

Maryem.


In order 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.
FArdi.1
Associate III

Just an update:

Problem is still there using new version STM32CubeProgrammer v2.16.0. After installing, the program is not responding after I click OK button. See attached pic.

 

I need to force close from task manager. The next time I run the CubeProgrammer, it auto-closed by itself after showing the blue welcome screen for about 2 seconds.

 

At least the workaround method is still working:

jre\bin\java.exe -Djna.nosys=true -jar STM32CubeProgrammer.exe

Talia
Associate

I encountered the same issue on a freshly setup Windows 11 VM.

I was finally able to get the installation to go through by somewhat dumb luck. I'm not sure if it's reproducible because the process was too annoying to bear repeating. I got it to interrupt the loop by ctrl-alt-del in host followed by vm.

  • System java version: 1.8.0_265 (extracted from bundled win64_v2-7-0 installer) *
  • started win64_v2-7-0 installer (observed installer crash/restart loop for 5-10 secs)
  • accidentally pressed ctrl + alt + delete (caused host system ctrl + alt + delete menu to come up)
  • pressed cancel
  • VM menu -> Insert -> Ctrl-Alt-Del
  • installer crash loop stops, expected screen with "next" and "cancel" options appears
  • install as normal

 

I tried most combinations of the following versions of installer/jre in 32 and 64 bit: **

installers:

en.stm32cubeprog_v2-5-0 ***
en.stm32cubeprg-win64_v2-7-0
en.stm32cubeprg-win64-v2-17-0
en.stm32cubeprg-win32_v2-7-0
en.stm32cubeprg-win32-v2-17-0

 

system java installed ****

none (both before installing any version of java and after removing JAVA_HOME and all java/bin from PATH)

openjdk 1.8.0_265 (extracted from bundled cubeprg-win64_v2-7-0 installer)

amazon-corretto-8.422.05.1-windows-x86-jre
amazon-corretto-8.422.05.1-windows-x86-jdk
amazon-corretto-8.422.05.1-windows-x64-jre
amazon-corretto-8.422.05.1-windows-x64-jdk
openjdk-11.0.2_windows-x64_bin
openjdk-17.0.2_windows-x64_bin
amazon-corretto-21.0.4.7.1-windows-x64-jdk
openjdk-22.0.2_windows-x64_bin

* note: The installer should not require any jre/jdk, but I experimented with many different versions because it seemed like javaw was crashing while starting the installer.

** in addition to underlying system java, I experimented with extracting the original stm32cubeprogrammer installer .exes and replacing the contained jre with various versions from above before running the extracted .exe

*** note: does not come bundled with jre. fails to start, citing requiring JRE 1.8.0_66-10.99.99. Attempted with jre/jdk 1.8.0_422, and jre 11, 17, 21, 22

**** note: java installed by unzipping to a specified folder and updating PATH and JAVA_HOME sys/environment variables