cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX 5.3.0 hangs when enabling FreeRTOS with Cube FW V.1.14.0

therealergo
Associate II

Hi. I am using CubeMX 5.3.0 code generation for the STM32F767VITx. Because of an unrelated bug in Cube FW V.1.15.0, I am currently using Cube FW V.1.14.0 (not migrated). When a project from CubeMX 5.1.0 is loaded, FreeRTOS is automatically disabled. When clicking the box to enable FreeRTOS, an infinite loading cursor is displayed, the "Configuration" panel never shows up, and FreeRTOS is not enabled. When running CubeMX as a jar from the terminal the following two errors are displayed, the first error on the first time FreeRTOS is enabled and the second on all subsequent attempts to enable FreeRTOS.

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at com.st.microxplorer.plugins.ip.freertos.FreeRTOS.setApiInUse(FreeRTOS.java:451)
        at com.st.microxplorer.plugins.ip.freertos.FreeRTOS.setConfigurationState(FreeRTOS.java:726)
        at com.st.microxplorer.plugins.ipmanager.gui.BlockDiagram.setConfigState(BlockDiagram.java:2033)
        at com.st.microxplorer.plugins.ipmanager.gui.BlockDiagram.updateIPConfigState(BlockDiagram.java:2080)
        at com.st.microxplorer.plugins.ipmanager.gui.BlockDiagram.propertyChange(BlockDiagram.java:1408)
        at java.beans.PropertyChangeSupport.fire(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at com.st.microxplorer.mxsystem.MxSystem.propertyChange(MxSystem.java:438)
        at java.beans.PropertyChangeSupport.fire(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at com.st.microxplorer.util.MXPropertyChangeSupport.firePropertyChange(MXPropertyChangeSupport.java:45)
        at com.st.microxplorer.mcu.Mcu.propertyChange(Mcu.java:1398)
        at java.beans.PropertyChangeSupport.fire(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at com.st.microxplorer.util.MXPropertyChangeSupport.firePropertyChange(MXPropertyChangeSupport.java:45)
        at com.st.microxplorer.mcu.Mode.firePropertyChange(Mode.java:2072)
        at com.st.microxplorer.mcu.Mode.setSubmode(Mode.java:1887)
        at com.st.microxplorer.peripheralpanel.CheckPeriphMode.doAction(PeriphMode.java:348)
        at com.st.microxplorer.peripheralpanel.CheckPeriphMode.access$000(PeriphMode.java:199)
        at com.st.microxplorer.peripheralpanel.CheckPeriphMode$1.run(PeriphMode.java:331)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException
        at com.st.microxplorer.plugins.ip.freertos.tables.ModeleTable.getValueAt(ModeleTable.java:52)
        at com.st.microxplorer.plugins.ip.freertos.FreeRTOS.addDefaultTasktoIp(FreeRTOS.java:618)
        at com.st.microxplorer.plugins.ip.freertos.FreeRTOS.setConfigurationState(FreeRTOS.java:731)
        at com.st.microxplorer.plugins.ipmanager.gui.BlockDiagram.setConfigState(BlockDiagram.java:2033)
        at com.st.microxplorer.plugins.ipmanager.gui.BlockDiagram.updateIPConfigState(BlockDiagram.java:2080)
        at com.st.microxplorer.plugins.ipmanager.gui.BlockDiagram.propertyChange(BlockDiagram.java:1408)
        at java.beans.PropertyChangeSupport.fire(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at com.st.microxplorer.mxsystem.MxSystem.propertyChange(MxSystem.java:438)
        at java.beans.PropertyChangeSupport.fire(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at com.st.microxplorer.util.MXPropertyChangeSupport.firePropertyChange(MXPropertyChangeSupport.java:45)
        at com.st.microxplorer.mcu.Mcu.propertyChange(Mcu.java:1398)
        at java.beans.PropertyChangeSupport.fire(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at com.st.microxplorer.util.MXPropertyChangeSupport.firePropertyChange(MXPropertyChangeSupport.java:45)
        at com.st.microxplorer.mcu.Mode.firePropertyChange(Mode.java:2072)
        at com.st.microxplorer.mcu.Mode.setSubmode(Mode.java:1887)
        at com.st.microxplorer.peripheralpanel.CheckPeriphMode.doAction(PeriphMode.java:348)
        at com.st.microxplorer.peripheralpanel.CheckPeriphMode.access$000(PeriphMode.java:199)
        at com.st.microxplorer.peripheralpanel.CheckPeriphMode$1.run(PeriphMode.java:331)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

Attached is a minimal example project that demonstrates this issue.

0 REPLIES 0