2018-06-11 06:45 PM
On a project that used to generate code just fine for months, STM32CubeMX now gets stuck. This is happening since an upgrade to version 4.26.0. If it is of any relevance, the project uses the STM32L4 package version 1.8.1.
The problem only seems to occur on Windows. On the Linux, STM32CubeMX finishes generating code and doesn't get stuck.
The last entry of STM32CubeMX.log is below. Ironically the same error happens on Linux, but CubeMX is able to move past that error. Even more ironic, the file usb_otg_fs_vars.tmp can be found in the folder MXTmpFiles. That's where CubeMX puts it according to the log file, but then cant find it anymore cause it looks for it in the Src folder ... go figure!
Given this huge flaw in CubeMX, I really need a way to download previous version: say 4.25.1 or 4.24.0.
Bugs in CubeMX are reported here frequently and I have to rely on downloads provided by third parties! Why?
2018-06-12 03:38:50,674 [ERROR] runtime:96 -
Error reading included file Src/usb_otg_fs_vars.tmpThe problematic instruction:----------==> include 'Src/usb_otg_fs_vars.tmp' [on line 77, column 1 in usbdconf_l4_c.ftl]----------Java backtrace for programmers:----------freemarker.template.TemplateException: Error reading included file Src/usb_otg_fs_vars.tmp at freemarker.core.Include.accept(Include.java:167) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.Environment.process(Environment.java:188) at freemarker.template.Template.process(Template.java:237) at com.st.microxplorer.codegenerator.CodeEngine.freemarkerDo(CodeEngine.java:269) at com.st.microxplorer.codegenerator.CodeEngine.genCode(CodeEngine.java:190) at com.st.microxplorer.codegenerator.CodeGenerator.generateOutputCode(CodeGenerator.java:2913) at com.st.microxplorer.codegenerator.CodeGenerator.generateSpecificCode(CodeGenerator.java:2721) at com.st.microxplorer.codegenerator.CodeGenerator.generateSpecificCodeFile(CodeGenerator.java:1092) at com.st.microxplorer.codegenerator.CodeGenerator.generateCodeFiles(CodeGenerator.java:1229) at com.st.microxplorer.codegenerator.CodeGenerator.generateCode(CodeGenerator.java:935) at com.st.microxplorer.plugins.projectmanager.engine.ProjectBuilder.generateCode(ProjectBuilder.java:1029) at com.st.microxplorer.plugins.projectmanager.engine.ProjectBuilder.createCode(ProjectBuilder.java:913) at com.st.microxplorer.plugins.projectmanager.engine.ProjectBuilder.createProject(ProjectBuilder.java:444) at com.st.microxplorer.plugins.projectmanager.engine.GenerateProjectThread.run(GenerateProjectThread.java:41)Caused by: java.io.FileNotFoundException: Template Src/usb_otg_fs_vars.tmp not found. at freemarker.template.Configuration.getTemplate(Configuration.java:489) at freemarker.core.Environment.getTemplateForInclusion(Environment.java:1459) at freemarker.core.Include.accept(Include.java:157) ... 18 more2018-06-12 03:38:50,678 [INFO] CodeEngine:279 - [Ljava.lang.StackTraceElement;@31a0a32018-06-12 01:07 AM
Hi
sven.koehler
,Could you please provide your complete ioc file for further check.
Khouloud.
2018-06-12 07:22 AM
I have sent you a private message.
2018-06-13 05:02 AM
Hi
sven.koehler
,Thanks for sharing your ioc file.One of our CubeMX team engineers will answer you ASAP.
Khouloud.
2018-06-27 07:08 PM
Hello. I have the same problem mentioned above. Any chances posting the solution in the comments? Thanks in advance.
P.S. I am using STM32CubeMX 4.25.1, so I think you would like to downgrade straight to 4.24.2018-07-05 04:14 AM
Hi Sven,
Thanks for reporting this issue it is under investigation and will be fixed for the next release
2018-08-19 06:06 AM
Unfortunately, even with version 4.26.1 it gets stuck I am using the STM32F446RC.
PLEASE MAKE THE OLD VERSIONS ACCESSIBLE!!! PLEASE!!!
2019-03-26 06:55 AM
Have the same issue but with F2
2019-06-19 12:00 AM
Hi all, I had the same problem. After many tries I found that I had 5 different Java versions installed on my PC (see folder C:\Program Files\Java\ and folder C:\ProgramData\Oracle\Java).
All I did was:
1) uninstall all the older versions
2) re-install a newer java version
3) setup correctly the PATH, by adding the correct java folder (something like C:\Program Files (x86)\Java\jre1.8.0_211\bin )
4) enjoy the working STM32CUBEMX code generation!
Cheers
Dino