cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX 6.1.1 Fails to load project.

SKILA
Associate II

Hello,

I am having a problem with CubeMX failing to load a project and not giving any description of what the error is. (See image)0693W000007ZCzEQAW.pngI started the exe using java to get more insight and I get this error

2021-02-23 10:57:51,490 [ERROR] ThirdPartyModel:1012 -
2021-02-23 10:57:51,492 [FATAL] ProjectFactory:378 - Exception caught
java.lang.NullPointerException
        at com.st.microxplorer.plugins.thirdparty.ThirdPartyIpManager.setIpMode(ThirdPartyIpManager.java:733)
        at com.st.microxplorer.plugins.thirdparty.ThirdPartyIpManager.updateModel(ThirdPartyIpManager.java:344)
        at com.st.microxplorer.plugins.thirdparty.ThirdPartyIpManager.updateModelDuringProjectLoad(ThirdPartyIpManager.java:311)
        at com.st.microxplorer.plugins.thirdparty.ThirdParty.mcuLoadStep1EventHandler(ThirdParty.java:724)
        at com.st.microxplorer.plugins.thirdparty.ThirdParty.propertyChange(ThirdParty.java:657)
        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.mxsystem.MxSystem.firePropertyChange(MxSystem.java:326)
        at com.st.microxplorer.mcu.Mcu.loadConfProperties(Mcu.java:5899)
        at com.st.microxplorer.mxsystem.ProjectFactory.load(ProjectFactory.java:336)
        at com.st.microxplorer.mxsystem.ProjectFactory.startLoadConfig(ProjectFactory.java:149)
        at com.st.microxplorer.mxsystem.MxSystem.startLoadConfig(MxSystem.java:572)
        at com.st.microxplorer.plugins.filemanager.engine.OpenFileManager.LoadConfig(OpenFileManager.java:276)
        at com.st.microxplorer.plugins.filemanager.engine.OpenFileManager.loadConfigurationFile(OpenFileManager.java:203)
        at com.st.microxplorer.plugins.filemanager.engine.OpenFileManager.userChoiceLoadConfig(OpenFileManager.java:105)
        at com.st.microxplorer.plugins.filemanager.engine.MainFileManager.userChoiceAndLoadConfig(MainFileManager.java:183)
        at com.st.microxplorer.plugins.filemanager.FileManagerView$3.actionPerformed(FileManagerView.java:525)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(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.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.awt.EventQueue$4.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)

I have no problem loading any other project file. Also tested it on another machine and I get the same problem.

Any input would be greatly appreciated!

Samer

1 ACCEPTED SOLUTION

Accepted Solutions
Khouloud ZEMMELI
ST Employee

Hi @SKILA​ ,

I'll share with our customers on community the steps that solved your problem:

1-Install the CubeMX 6.2.0 from site

2-Go to C:\Users\..\STM32Cube\Repository\Packs\STMicroelectronics on your PC

3-Delete the X-Cube-AI pack

Open CubeMX 6.2.0 version

4-Click on Manage Embedded software package under Help

5-Install X-Cube-AI pack VERSION 5.2.0 (latest one)

6-Load your project / double click on .ioc and merge your X-Cube-AI pack used on your ioc file to 5.2.0 version : Click on Software Packs + Click on merge icon beside the pack

Thanks for your contribution, Khouloud

View solution in original post

9 REPLIES 9
Khouloud ZEMMELI
ST Employee

Hello @SKILA​ 

Thanks for your feedback,

Could you please share your ioc file to check the problem from my side?

Khouloud

SKILA
Associate II

Thank you @Khouloud ZEMMELI​  I have sent you the ioc file in a message.

Hi @SKILA​ ,

You're right, I have reproduced the same issue using your ioc file (thanks for your help by sharing your project) and it will be fixed.

Always welcome, Khouloud

SKILA
Associate II

Hello @Khouloud ZEMMELI​ thank you for taking the time and looking at the file. I appreciate that it will be fixed but I would also like to be able to access this file now. Is there any thing I can do to be able to read the file and use it?

Hello @SKILA​ 

Sorry for the delay, Issue is fixed and I can load your project now, could you please check with the latest CubeMX version (it's available on site ) ?

I'll be waiting for your feedback 🙂

Thanks, Khouloud

SKILA
Associate II

Hello @Khouloud ZEMMELI​ ,

I have now installed v6.20 but unfortunately, I still get the same empty error message :(

Khouloud ZEMMELI
ST Employee

Hello @SKILA (Community Member)​ 

I have made some changes to your project, please load the latest CubeAI pack (5.2.0) then re-configure it through CubeMX.

Please tell me if you still face a problem during the load of the ioc. (I have sent you your ioc file in message)

Thanks, Khouloud

Khouloud ZEMMELI
ST Employee

Hi @SKILA​ ,

I'll share with our customers on community the steps that solved your problem:

1-Install the CubeMX 6.2.0 from site

2-Go to C:\Users\..\STM32Cube\Repository\Packs\STMicroelectronics on your PC

3-Delete the X-Cube-AI pack

Open CubeMX 6.2.0 version

4-Click on Manage Embedded software package under Help

5-Install X-Cube-AI pack VERSION 5.2.0 (latest one)

6-Load your project / double click on .ioc and merge your X-Cube-AI pack used on your ioc file to 5.2.0 version : Click on Software Packs + Click on merge icon beside the pack

Thanks for your contribution, Khouloud

SKILA
Associate II

Thank you @Khouloud ZEMMELI​ . Your prompt help is greatly appreciated!