2018-12-20 07:23 AM
Hello,
The first time code generation with CubeMX 5.0.0 for TrueSTUDIO worked just fine. Then I added a GPIO configuration and tried to re-generate the code resulting in the famous message "The Code is successfully ... but TrueSTDUDIOproject generation have a problem.". Following is the log showing the error:
[...]
2018-12-20 16:04:42,820 [INFO] CodeEngine:184 - oldGeneratedFile, D:\tmp\STM32\es32t\Src\main.c_save
2018-12-20 16:04:42,959 [INFO] CodeEngine:202 - Generated code: D:\tmp\STM32\es32t\Src\main.c
2018-12-20 16:04:43,641 [INFO] ProjectBuilder:1412 - Time for Copy HAL[1] : 89mS.
2018-12-20 16:04:43,651 [INFO] ProjectBuilder:1974 - Project Generator version: 3.0.0
2018-12-20 16:04:43,667 [INFO] ConfigFileManager:779 - The Die is : DIE448
2018-12-20 16:04:44,390 [INFO] ToolchainGenerator:120 - stack trace : java.lang.NullPointerException
at generators.TrueStudioGenerator.replaceLocationUriNodes(TrueStudioGenerator.java:119)
at convertor.Convertor.generateTSTKProject(Convertor.java:1148)
at convertor.Convertor.generateTrueStudioFiles(Convertor.java:1069)
at convertor.Convertor.generate(Convertor.java:625)
at convertor.Convertor.convert(Convertor.java:534)
at convertor.Convertor.updateProject(Convertor.java:402)
at com.st.microxplorer.plugins.projectmanager.model.ToolchainGenerator.update(ToolchainGenerator.java:114)
at com.st.microxplorer.plugins.projectmanager.engine.ProjectBuilder.createToolChainFolders(ProjectBuilder.java:2027)
at com.st.microxplorer.plugins.projectmanager.engine.ProjectBuilder.createProject(ProjectBuilder.java:570)
at com.st.microxplorer.plugins.projectmanager.engine.GenerateProjectThread.run(GenerateProjectThread.java:41)
2018-12-20 16:04:44,390 [INFO] ToolchainGenerator:121 - [Project Generator] Problem in the update of the project
2018-12-20 16:04:44,391 [INFO] ConfigFileManager:1258 - mx.scratch is deleted!
2018-12-20 16:04:44,391 [INFO] ProjectBuilder:2034 - Time for Generating toolchain IDE Files: 740mS.
2018-12-20 16:04:44,391 [ERROR] ProjectBuilder:2040 - Error in Project Generation
2018-12-20 16:04:44,394 [ERROR] ProjectBuilder:587 - Error in Project Generation
I have also attached the corresponding .ioc file. Any idea what could provoke the java error?
regards Felix