ST意法半导体
直播中

李永每

7年用户 1424经验值
私信 关注
[问答]

CubeMX 6.1.1加载项目失败怎么解决?

我遇到 CubeMX 无法加载项目并且没有给出任何错误描述的问题。(见图片)
我使用 java 启动 exe 以获得更多信息,但出现此错误
  • 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)
我加载任何其他项目文件都没有问题。还在另一台机器上测试过,我遇到了同样的问题。







回帖(1)

李傈吏

2023-1-6 11:17:06
我将在社区中与我们的客户分享解决您问题的步骤:
1-从站点安装 CubeMX 6.2.0
2-在您的 PC上转到 C:Users..STM32CubeRepositoryPacksSTMicroelectronics
3-删除 X-Cube-AI 包
打开CubeMX 6.2.0版本
4-单击帮助下的管理嵌入式软件包
5-安装X-Cube-AI pack VERSION 5.2.0  (最新)
6-加载您的项目/双击 .ioc并将您在 ioc 文件上使用的 X-Cube-AI 包合并到 5.2.0 版本:单击 Software Packs + 单击包旁边的合并图标
举报

更多回帖

发帖
×
20
完善资料,
赚取积分