2023-01-23 10:35 AM
I am trying to download STM32CubeProgrammer on MacOS Monterey 12.6 in order to program a STM32F103C8T6 ARM (BluePill) microcontroller. I followed the directions on this post, but I'll outline what I did exactly.
I first uninstalled java:
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -rf /Library/Application\ Support/Oracle/Java/
sudo rm -rf /Library/Java/JavaVirtualMachines
I then installed jdk-8u231-macosx-x64.
Which downloads a different version of Java than the post I was following which I suspect could be part of the problem. I also didn't download the JMC separate download. Not sure if that matters.
I then downloaded the STM32CubeProgrammer for Mac. Tossed the folder on my desktop, and changed directory to this folder
I then ran the command:
sudo java -jar SetupSTM32CubeProgrammer-2.12.0.exe
Which brings up the installation wizard for the STM32CubeProgrammer. I followed this and downloaded it to this default location:
/Applications/STMicroelectronics/STM32Cube/STM32CubeProgrammer
Downloaded these files:
But it gives me this error:
With these details:
Not sure why it's looking for jre 3 parent directories back. I tried to move the jre file there but it's giving me this error:
What am I doing wrong? Thank you so much in advance for the help. This is for a school project team and I can really use the help.
Solved! Go to Solution.
2023-02-22 02:02 AM
Hello @SLenn.2 , @Community member , @TJone.5 ,
Thanks for your feedback,
Adding to what my collegue @KHALSI_Foued referred to, you can also try one of the following solutions:
1- Install CubeProgrammer using the command:
sudo xattr -cr ~/SetupSTM32CubeProgrammer-macos.app
2- In case you used the .exe installer (sudo java -jar SetupSTM32CubeProgrammer-2.12.0.exe.) and the popup occurs during the install indicating the following:
""
cp: en.stm32cubeprg-mac_v2-12-0/../../../jre: No such file or directory
Continue Installation?
""
Continue the installation and copy the downloaded jre folder manually into the CubeProg install folder. To do so, please follow the steps below:
- Copy the jre folder from the downloaded en.stm32cubeprg-mac_v2-12-0
- Open CubeProgrammer install folder
- Right click on STM32CubeProgrammer.app and select "Show Package Contents"
- Paste the jre folder
3- After the install, if CubeProgrammer couldn't be launched via GUI, please try to lanch it via CLI as follows,
- Navigate to the /Applications/STMicroelectronics/STM32Cube/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin/
- type the command:
java -jar STM32CubeProgrammer
- If the jre folder exists in CubeProgrammer install folder, type the following command:
../../../jre/bin/java -jar STM32CubeProgrammer
I hope this helps!
Sara.
2023-01-25 05:32 AM
Hello @SLenn.2,
Please check this link ,I think you have the same issue as reported.
Foued
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.
2023-01-26 12:31 PM
I am having the same issue with the installation and have not been able to get the tool to launch, has anyone figured this out yet?
2023-02-21 09:05 PM
I am also seeing the same error while i downloading.
2023-02-22 02:02 AM
Hello @SLenn.2 , @Community member , @TJone.5 ,
Thanks for your feedback,
Adding to what my collegue @KHALSI_Foued referred to, you can also try one of the following solutions:
1- Install CubeProgrammer using the command:
sudo xattr -cr ~/SetupSTM32CubeProgrammer-macos.app
2- In case you used the .exe installer (sudo java -jar SetupSTM32CubeProgrammer-2.12.0.exe.) and the popup occurs during the install indicating the following:
""
cp: en.stm32cubeprg-mac_v2-12-0/../../../jre: No such file or directory
Continue Installation?
""
Continue the installation and copy the downloaded jre folder manually into the CubeProg install folder. To do so, please follow the steps below:
- Copy the jre folder from the downloaded en.stm32cubeprg-mac_v2-12-0
- Open CubeProgrammer install folder
- Right click on STM32CubeProgrammer.app and select "Show Package Contents"
- Paste the jre folder
3- After the install, if CubeProgrammer couldn't be launched via GUI, please try to lanch it via CLI as follows,
- Navigate to the /Applications/STMicroelectronics/STM32Cube/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin/
- type the command:
java -jar STM32CubeProgrammer
- If the jre folder exists in CubeProgrammer install folder, type the following command:
../../../jre/bin/java -jar STM32CubeProgrammer
I hope this helps!
Sara.