Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


CubeMX Plugin on Eclipse

Good morning

This morning I installed SW4STM32 on the latest version of Eclipse.
ST CubeMX is not present by default, so I have downloaded stsw-stm32095.zip from the ST website.
I unzipped stsw-stm32095.zip inside the SW4STM32 folder.
Unfortunately CubeMX is not yet present in the list of Eclipse Perspectives.

Perhaps I made mistakes?

I performed the same procedure on Windows and Ubuntu but the result is the same.


Drk

Tunisia

To install STM32CubeMX as an Eclipse IDE plug-in, follow the sequence below:
1. Launch the Eclipse environment.
2. Select Help Install New Software from the main menu bar. The Available Software
window appears.
3. Click Add. The Add Repository window opens.
4. Click Archive. The Repository archive browser opens.
5. Select the STM32CubeMX- Eclipse-plug-in .zip file that you downloaded and click
Open (see Figure 5).
6. Click OK in the Add Repository dialog box,
7. Check STM32CubeMX_Eclipse_plug-in and click Next (see Figure 6).
8. Click Next in the Install Details dialog box.
9. Click ”I accept the terms of the license agreement” in the Review Licenses dialog box
and then click Finish.
10. Click OK in the Security Warning menu.
11. Click OK when requested to restart Eclipse IDE (see Section 3.4.2: Running
STM32CubeMX in command-line mode).


For further details refer to STM32CubeMX user manual section 3.3.2 : Installing STM32CubeMX as an Eclipse IDE plug-in


Plugin on Linux OS crashes and has a horrible death. Might be due to the Java 64 runtime haven’t looked more into it.

try set SWT_GTK3=0 (i forgot where i got this)

$ SWT_GTK3=0 /path to eclipse/eclipse

its work for me


Hi

I confirm this.
On my system, ubuntu 64 bits, when I try to execute the perspective CubeMX Eclipse to crash
I get this error message:


JVM terminated. Exit code=1
/usr/bin/java
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/drake/Scrivania/STM32/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /home/drake/Scrivania/STM32/eclipse//plugins/org.eclipse.platform_4.3.2.v20140221-1700/splash.bmp
-launcher /home/drake/Scrivania/STM32/eclipse/eclipse
-name Eclipse
-launcher.library /home/drake/Scrivania/STM32/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140116-2212/eclipse_1508.so
-startup /home/drake/Scrivania/STM32/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
-launcher.appendVmargs-
-exitdata c3000e
-product org.eclipse.epp.package.cpp.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/drake/Scrivania/STM32/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar

Hi, I think I have the same problem. Did you solve the issue?
BR

Hi,

I get something similar STM32CubeMx Eclipse plugin just doesn’t work without crashing Eclipse.

Running as “root” fixes this however, so I thing there is some access problem I don’t know Linux well enough to see what it is.

Did you get anywhere with this?

Same for me under ubuntu 14.04. Cubemx start as eclipse plugin only as root. Anyway, it’s not much use since code generation still crashes eclipse.

Attached is the logfile generated when I tried creating a project.

Although, I dont know if the eclipse plugin is very important. Since after trying the plugin, I then tried the standalone CubeMx. The version is 4.16.1, and it works just fine in Ubuntu 14.04. The download from ST has a linux installer inside, just double click and it installed without any hacking involved. I tried creating a simple Hal project and everything seems to work, no crashes here, and project files are generated.

Now I just need to find out how to easily import them to System Workbench.


Same problem for me (Ubuntu 64bits).
Here is the end of execution trace when launching sw4wtm32 from the console:
__IoConfig Change Database Path : /home/bdufay/STM32/SystemWorkBench/plugins/com.st.microxplorer.rcp_4.14.0.201603171736//db/
IoConfig Change Database Version : DB.4.0.140
setPackage(No Configuration,No Configuration)
xcb Unknown sequence number while processing queue
xcb Most likely this is a multi-threaded client and XInitThreads has not been called
xcb Aborting, sorry about that.
java: ../../src/xcb_io.c :274 : poll_for_event: l’assertion « !xcb_xlib_threads_sequence_lost » a échoué.__

Thank you for fixing this if possible.

Regards,

BDufay


I get this error after selectin STM32Cube perspective in Eclipse Neon with en.stsw-stm32095.zip plugin installed.

HeapMemory: 268435456
Can’t use Application install path:
Compatibility file:/mcu/compatibility.xml not found
Using Application install path:/home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103
Using Application install path:/home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103
loadPluginJar : updater
Updater Check For Update Now.
IoConfig Change Default Database Version : DB.4.0.161
IoConfig Change Database Version : DB.4.0.161
loadPluginJar : add updater
loadPluginJar : projectmanager
End of CheckServer Thread
loadPluginJar : add projectmanager
loadPluginJar : pinoutconfig
InternalPropertyChange: ChangeKeepUser dont care
loadPluginJar : add pinoutconfig
loadPluginJar : filemanager
loadPluginJar : add filemanager
loadPluginJar : power
loadPluginJar : add power
loadPluginJar : ipmanager
loadPluginJar : add ipmanager
loadPluginJar : clock
loadPluginJar : add clock
PluginManage : ReOrganize retry 7x
setPackage(No Configuration,No Configuration)
loadIPPluginJar : fatfs /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/fatfs.jar
loadIPPluginJar : add fatfs
loadIPPluginJar : sai /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/sai.jar
loadIPPluginJar : add sai
loadIPPluginJar : tim /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/tim.jar
loadIPPluginJar : add tim
loadIPPluginJar : plateformsettings /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/plateformsettings.jar
loadIPPluginJar : add plateformsettings
loadIPPluginJar : spi /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/spi.jar
loadIPPluginJar : add spi
loadIPPluginJar : gpio /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/gpio.jar
loadIPPluginJar : add gpio
loadIPPluginJar : ltdc /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/ltdc.jar
loadIPPluginJar : add ltdc
loadIPPluginJar : dfsdm /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/dfsdm.jar
loadIPPluginJar : add dfsdm
loadIPPluginJar : i2s /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/i2s.jar
loadIPPluginJar : add i2s
loadIPPluginJar : i2c /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/i2c.jar
loadIPPluginJar : add i2c
loadIPPluginJar : quadspi /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/quadspi.jar
loadIPPluginJar : add quadspi
loadIPPluginJar : tsc /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/tsc.jar
loadIPPluginJar : add tsc
loadIPPluginJar : usart /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/usart.jar
loadIPPluginJar : add usart
loadIPPluginJar : opamp /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/opamp.jar
loadIPPluginJar : add opamp
loadIPPluginJar : adc /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/adc.jar
loadIPPluginJar : add adc
loadIPPluginJar : fmc /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/fmc.jar
loadIPPluginJar : add fmc
loadIPPluginJar : dma /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/dma.jar
loadIPPluginJar : add dma
loadIPPluginJar : comp /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/comp.jar
loadIPPluginJar : add comp
loadIPPluginJar : can /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/can.jar
loadIPPluginJar : add can
loadIPPluginJar : nvic /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/nvic.jar
loadIPPluginJar : add nvic
loadIPPluginJar : freertos /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/freertos.jar
loadIPPluginJar : add freertos
loadIPPluginJar : genericplugin /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103/plugins/ip/genericplugin.jar
loadIPPluginJar : add genericplugin
IoConfig Change Database Path : /home/mateusz/eclipse/cpp-neon/eclipse/../../../.p2/pool/plugins/com.st.microxplorer.rcp_4.16.1.201609011103//db/
IoConfig Change Database Version : DB.4.0.161
setPackage(No Configuration,No Configuration)
xcb Unknown request in queue while dequeuing
xcb Most likely this is a multi-threaded client and XInitThreads has not been called
xcb Aborting, sorry about that.
java: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq’ failed.

2+ Done ./eclipse

Is there a fix or a solution to this problem ?


Hi guys,
I have this problem fixed.
The main problem is that the GTK version 3 doesn’t work with Eclipse Neon or the CubeMX plugin, so forcing the Eclipse to using GTK version 2 would eliminate the problem.0
My way is to add below lines into eclipse.ini ,

--launcher.GTK_version
2

Hope this will help.

-BNow

Thank you that works for me with Zorin OS (Ubuntu 16.04).

Just I would like to point out that it should be added to the beginning of the file, if it is done at the end it gives an error when openning eclipse.

Mine works fine with GTK version 2, but I had to start the workbench from console with root else the CubeMX plugin crashes eclipse:
sudo ./eclipse

This worked for me as well. The only minor issue is that when I open eclipse all the icons are not present (see the image attached). But that is resolved just briefly changing the perspective and returning to the c/c++ perspective.

Eclipseissue


BTW, I have verified my fix at this environment.

Ubuntu 64bit 16.04
Eclipse Neon CDT

STM32F0Discovery board (MB1034B)


Standalone works good on Ubuntu.

 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs