Skip to main content
XR.1
Senior
July 11, 2023
Question

STM32Cube IDE, it's a pain in the back to create a new project

  • July 11, 2023
  • 7 replies
  • 8551 views

Being a NXP fan, I need to use the STM32 ecosystem because there's enough stock (60000+) for the STM32G070 microcontroller (besides it fulfills my project needs); however, using the IDE has been a pain in the back, so that I'm considering to going back to NXP even if I'm gonna suffer with its stock (and higher prices).

First, while creating a new project for such microcontroller in my Linux Mint box, the IDE (1.12.1) stucks at window "Licensing agreement". It tooks several minutes to render the content of such window. Nothing seems to happen when either I click on "Click here to..." or "I have read..." ("Cancel" button doesn't even respond!).

Then these next console messages are shown when it finally finishes with this window (arount 20 minutes):

$ /opt/st/stm32cubeide_1.12.1/stm32cubeide_wayland %F
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
1 : Invalid condition id : UX_CORESTACK_Condition cause : null
1 : Invalid condition id : UX_CORESTACK_Condition cause : null
1 : Invalid condition id : UX_CORESTACK_Condition cause : null
1 : Invalid condition id : UX_CORESTACK_Condition cause : null
1 : Invalid condition id : UX_CORESTACK_Condition cause : null
[19170:19170:0710/150719.666213:ERROR:chrome_browser_cloud_management_controller.cc(162)] Cloud management controller initialization aborted as CBCM is not enabled.
[19170:19170:0710/150720.378797:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.portal.Error.NotFound: No se encontró la configuración solicitada
[19207:19207:0710/150722.172006:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No existe el archivo o el directorio (2)
[19207:19207:0710/150722.173265:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No existe el archivo o el directorio (2)
[19207:19207:0710/150722.176672:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No existe el archivo o el directorio (2)
[19207:19207:0710/150722.177416:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No existe el archivo o el directorio (2)
[19207:19207:0710/150722.182019:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No existe el archivo o el directorio (2)

etc...

Then the IDE closes itself. Then, when I launch the IDE again, it stucks forever in the splash window

Is this the price to pay for using your tools?

This misbehaviour has been there for a long. Is there a prove workaround for these two problems? Take into account that I can't delete the working directory any time I need to open the IDE.

Thank you!

 

 

 

    7 replies

    raptorhal2
    Lead
    July 11, 2023

    I like Ubuntu Linux, but was always frustrated with the extra head knowledge needed for a Cube installation.

    Before abandoning Cube, try a Windows installation. It should work fine there.

    XR.1
    XR.1Author
    Senior
    July 11, 2023

    Hi! Thank you for the suggestion, but I live my life around Linux; I haven't used Windows for 15+ years, so unfortunately it's not an option.

    MCU-Xpresso from NXP (based on Eclipse too) works nice and flawlessly, however as I said, the STM32G070 has a lot of stock and in these post-pandemic times that's a primary factor to take into account for new designs. Hope STMCube IDE gets better.

    AScha.3
    Super User
    July 11, 2023

    Hi, i run the stmCubeIde on my PC (on linux MX18 , 5 y old now) and at work on some win PCs , so i can compare;

    all working ok, but on my linux it is a bit faster and behavior , when switching from edit to debug is perfect. 

    on windows i need to switch manually sometimes (!) , to get the desired view.

    and NXP espresso i have installed also, but i dont like this crazy "generate new sdk all the time" to do a small change on something. STM doing this better, except when you hit an error in the generated code. But there might be some errors in the code generators of all manufacturers . :)

    btw i run STM32CubeIDE Version: 1.10.1 , and dont update, if not forced to do, because this system still runs fast and perfect, so update is more a dangerous game for me...

    (and do a search on forum, for linux...problems , there are some solutions )

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    RhSilicon
    Lead
    July 11, 2023

    I got to know STM32CubeIDE first, then I got to know MCUXpressoIDE,

    MCUXpressoIDE was a little strange for me to be able to load a ready-made example project, maybe it's normal because it's something different from what we're used to using.

    But it seems to me that the MCUXpresso libraries are more complete than the STM32Cube libraries, so the developer has to evaluate whether he wants to waste time rewriting the wheel and use STM32, or wants to pay for something more complete like NXP.

    Take the case of support for HUB in the USB Host stack, it's been a decade and no support, not even support for multiple HID interfaces has been implemented:

    https://github.com/STMicroelectronics/stm32_mw_usb_host/blob/master/Class/HID/Src/usbh_hid.c

    Today I found the NXP USB Host stack, and there is support for HUB:

    https://github.com/nxp-mcuxpresso/mcux-sdk-middleware-usb/blob/main/host/class/usb_host_hub.c

    RhSilicon
    Lead
    July 11, 2023

    @XR.1 wrote:
    ...

    [19207:19207:0710/150722.182019:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No existe el archivo o el directorio (2)

     


    I noticed some words in Spanish in your system messages, it took me a while to learn that it's best to have a system in English to make programs, either for a computer or for a microcontroller, mainly to look for help in the errors that may occur.

    XR.1
    XR.1Author
    Senior
    July 12, 2023

    You're right, indeed!

    "No existe el archivo o el directorio" stands for "The file or directory doesn't exist". I just wanted to show the real output.

    Pavel A.
    Super User
    July 11, 2023

    @XR.1 Unfortunately, Mint is not a supported Linux version for CubeIDE.

    The list of supported versions can be found in the installation guide, pg. 2.

    A new IDE and library set always is a learning ramp for beginners, but suffering is not mandatory. Skip the effort by hiring a consultant. Get your tools and libraries prepared and installed for you, stay focused on the essence of your project.

    XR.1
    XR.1Author
    Senior
    July 12, 2023

    Hi, Linux Mint derives from Ubuntu, which in turn derives from Debian; indeed, almost everything that works in Ubuntu works in LM 'cause its heritage. By now, magically, the IDE under LM is working as expected :expressionless_face:.

    XR.1
    XR.1Author
    Senior
    July 12, 2023

    UPDATE: As magic, the IDE is working as expected :expressionless_face:

    After the IDE freezes, as I've described, I killed the Java process and I delete the project's debris (actually I exercised this steps several times). Then I started the IDE again, and it magically worked! That's not ok, either, but  at least I can continue with my project.

    I can't say this issue has been solved because the magic doesn't exist.

    Out of topic: why ST has ten of thousends of units in stock while others (NXP, Microchip, Renesas, etc) don't?

    Pavel A.
    Super User
    July 13, 2023

    Yep, magic is not a technical terminology - but so is "project's debris". Copying eclipse metadata in project and workspace directories is a staple recipe for trouble (I don't know why, not an eclipse pro). People usually bring the sources to a new machine via version control (and don't check the debris in) so they avoid the trouble, by cost of a little more setup of a new workspace.

    GAuye
    Associate
    October 9, 2023

    Hello, I have the same problem running STM32Cube IDE latest version over a VMWare Virtual Machine with Ubuntu 22.04. We I try to create a new project the program is stucking in the License Agreement part, after 10 minutes it let me swith to agree the Terms and Conditions but nothing happens after that. Did you finally find a solution for this? (I have tested it with different installation in different machines, always virtual machines, and I got similar results)

    Pavel A.
    Super User
    October 9, 2023

    @GAuye  While waiting for more useful responses, can you share configuration of the VM (RAM size, video config, number of CPUs...)? or attach the .vmx file (pack with 7z)

    GAuye
    Associate
    October 11, 2023

    Sure, in this now I'm running with 2 Gb of RAM but I have tested it with 8 Gb with the same results. I'm sharing the two files. Checking the process running, Java takes 99% of the CPU workload but nothing happened.

    Nchen.1
    Associate II
    January 14, 2024

    .metadata folder may be corrupted. Try to delete it, it will be recreated on the next time open the project