2024-12-01 02:43 AM
Hi All
I have installed STM32 CubeMX on a Mac and I get the following error when trying to generate code:
The Eclipse executable launcher was unable to locate its companion shared library.
2024-12-09 04:46 AM
Same issue as this thread.
2024-12-09 05:53 AM
Hello @chairdeng @zuojaing
This could be an issue related to the unzipping of STM32CubeIDE.
Could you please try this command line that removes extended attributes in macOS:
xattr -c /Applications/STM32CubeIDE.app
KR, Souhaib
2024-12-09
08:04 AM
- last edited on
2024-12-09
11:43 PM
by
Maxime_MARCHETT
Hi, after following your solution and running sudo xattr - c/Applications/STM32CubeIDE.app on the terminal, the problem persists. Are there any other solutions?
*This post has been translated from Chinese to comply with the ST Community guidelines.
2024-12-09 05:10 PM
According to your description, after running sudo xattr - c/Applications/STM32CubeIDE. app on the terminal, I restarted stm32cubemx to generate code, but the problem still persists
2024-12-09 09:47 PM
The problem has not been solved. The following is the log when the problem occurred. Please check how to solve it.
2024-12-10 07:59 AM
Could you try the same command line with ~/STM32CubeMX-6.13.0.app or try to uninstall CubeMX and reinstall it again and make sure to unzip the package using an official macOS® application such as the default graphical archive application, or the ditto tool in the command line:
$ditto -x -k setupArchive.zip
If the problem persists, please attach your IOC and log file to further investigate the issue.
2024-12-10 10:41 PM
When I uninstalled CubeMX and re-downloaded the CubeMX 6.13 installation package, both the macOS official extraction tool and the command sudo ditto -x -k en.stm32cubemx-mac-v6-13-0.zip ./STM32CubeMX failed to extract the file or reported an error: Couldn't read pkzip signature.
2024-12-11 04:02 AM
Can you use the official macOS decompression tool to extract the installation package of Cubemx
2024-12-11 04:34 AM
A few hours after I found that I couldn't decompress, I tried to decompress using the official macOS software again and successfully, but the original problem still persisted. At the same time, I closed cubemx again and ran the command sudo xattr - c/Applications/STMicroelectronics/STM32CubeMX. app, but the problem still persisted. Finally, as per your request, I uploaded the program log and the IOC file I used for testing
2024-12-12 05:08 PM - edited 2024-12-12 05:10 PM
If you're like me, you're just trying to move along and get your basic project working...
It's quite frustrating that these somewhat fundamental things aren't working in a new release. I am sure the emphasis is to get things working on Windows and then Linux first, but it seems this would be part of some basic testing before releasing on all 3 platforms.
Anyway...
I had the exact same issue and ended up closing CubeMX and restored to just shutting it down and then open STM32CubeIDE. From there, create a new STM32 Project from scratch which will allow you to name the project and create the IOC like you were likely doing from MX. The project should open successfully and you can build whatever you've configured. Or at least I was.
Good luck!