I have encountered an exception in CubeMX 6.2.0 migrating a project for STM32L4R7ZI CubeMX finishes the migration. the IOC file is modified. The tool seems to operate normally. If I choose "generate code" the tool crashes. What can I do to bypass th
- March 31, 2021
- 5 replies
- 1582 views
Java console output excerpt.
2021-03-31 17:06:02,953 [INFO] CodeEngine:229 - oldGeneratedFile, C:\Projekte\ST_IDE_15\eifel\Core\Src\spi.c_save
2021-03-31 17:06:03,015 [ERROR] runtime:60 - Error executing FreeMarker template
FreeMarker template error:
The following has evaluated to null or missing:
==> varName [in template "ip_c.ftl" at line 419, column 78]
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign indicator = varName + "." + a... [in template "ip_c.ftl" in macro "generateConfigModelCode" at line 419, column 57]
- Reached through: @generateConfigModelCode configModel=... [in template "ip_c.ftl" in macro "generateConfigCode" at line 654, column 6]
- Reached through: @generateConfigCode ipName=ipName typ... [in template "ip_c.ftl" in macro "generateServiceCode" at line 859, column 3]
- Reached through: @generateServiceCode ipName=words[0] ... [in template "ip_c.ftl" at line 1350, column 5]
----
Java stack trace (for programmers):
----
freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...]
at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134)
at freemarker.core.EvalUtil.coerceModelToTextualCommon(EvalUtil.java:481)