AnsweredAssumed Answered

CubeMx 4.24.0 is throwing Null Pointer Exception when CAN + ETH IPs active

Question asked by david.rea on Feb 16, 2018
Latest reply on Feb 22, 2018 by Jeanne Joly

I just upgraded to CubeMx 4.24 and attempted to migrate a STM32F7 project .ioc file. The migration failed with a Java null pointer exception when it reached the CAN IP portion.

 

To verify my .ioc file was not the culprit, I created a new project and the issue persisted. Here are the steps to reproduce:

 

  1. Start CubeMx 4.24, create new project
  2. Select STM32F745VET for processor
  3. Save project, Close CubeMx
  4. Re-Open CubeMx, attempt to open file previously created -- opens successfully.
  5. Add Ethernet IP, allow clock tab to auto-resolve clock tree issues
  6. Save project, Close CubeMx
  7. Re-Open CubeMx, attempt to open file previously created -- throws null pointer exception and uses 100% CPU

 

Here is the topmost portion of the stack trace when it throws the exception:

2018-02-16 16:29:02,320 [INFO] UtilMem:68 - End LoadConfig() Used Memory: 2695795904 Bytes (3036151808)
2018-02-16 16:29:02,386 [INFO] ThirdPartyDb:293 - Open Third Party DataBase File (/home/david/.stm32cubemx/plugins/thirdparty/db/thirdparties_db.xml) : 0 ms. number of Sw pack : 0
2018-02-16 16:29:02,705 [INFO] PinOutPanel:995 - setPackage(No Configuration,No Configuration)
2018-02-16 16:29:02,706 [INFO] PinOutPanel:995 - setPackage(STM32F745VETx,LQFP100)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.st.microxplorer.plugins.ip.can.gui.CanManager.verifyValuePrescaler(CanManager.java:467)
at com.st.microxplorer.plugins.ip.can.gui.CanManager.clockChange(CanManager.java:72)
at com.st.microxplorer.plugins.ip.can.gui.CanManager.<init>(CanManager.java:59)
at com.st.microxplorer.plugins.ip.can.Can.onEnable(Can.java:53)
at com.st.microxplorer.plugins.ipmanager.pluginmanagement.IPUIPlugin.onEnablePlugin(IPUIPlugin.java:256)
at com.st.microxplorer.plugins.ipmanager.gui.BlockDiagram.enableDisableButtons(BlockDiagram.java:1065)
at com.st.microxplorer.plugins.ipmanager.gui.BlockDiagram.createPanels(BlockDiagram.java:439)
at com.st.microxplorer.plugins.ipmanager.gui.BlockDiagram.propertyChange(BlockDiagram.java:974)
at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
at com.st.microxplorer.util.MXPropertyChangeSupport.firePropertyChange(MXPropertyChangeSupport.java:40)
at com.st.microxplorer.mxsystem.MxSystem.completeLoadConfig(MxSystem.java:369)

 

I have tried rebooting, removing and reinstalling CubeMx 4.24, and creating new projects from scratch. With this MCU, as soon as both CAN and ETH IPs are activated, I get this crash.

 

If it is possible to download CubeMx 4.23.0, please advise where I can do so. I need to get back up and running as soon as possible, as I have multiple active projects that depend on CubeMx heavily. It was working great up until now...

 

Thanks,
Dave

Outcomes