2025-05-12 10:25 PM
Hi,
I got several FreeMarker template errors when I tried to compile the code to test out EVLSPIN32G0A1. It looks like all the files under MotorControl folder were affected by what I assume is the same error type (see attached picture).FreeMarker template error. The steps to reproduce this error are as shown below.
Hardware Platform:
Software:
Sequence of operation to reproduce error:
I folowed the instructions in section 3.2 of UM3398 (User's manual: Getting started with EVLSPIN32G0A1)
I'm a newbie when it comes to using STM hardware and/or software. Please excuse my apparant lack of knowledge in this area and kindly assist me with resolving the issue at your earliest convenience.
Thanks,
A.K
Solved! Go to Solution.
2025-05-17 6:05 AM
Finally figured out the issue. I was trying to use the ioc file to create the project directly from STM32CubeIDE. The correct way of doing this is to use the project file located in workbench folder:
..\.st_workbench\projects\Another_FOC\Another_FOC\STM32CubeIDE\.project
Hopefully this helps someone else in the similar situation.
Thanks,o
Bam
2025-05-15 12:18 AM
Hello @Bam,
Have you generated your project from Motor Control Workbench or from CubeMx tool? It is mentioned in the log that one file is missing (header.ftl). Could you check that "ftl" directory is present on your project directory (at same level as "Src" and "Inc").
If project has been generated by Motor Control Workbench tool, could you share your stwb6 file?
2025-05-15 11:39 PM
2025-05-16 12:48 AM
Hello @Bam,
Using MCSDK6.3.2, STM32CubeMX 6.14.1, STM32CubeIDE 1.17.0 and Firmware Package Version STM32 FW 1.6.2, I am able to generate your project and compile it with no error.
Could you try starting from an empty directory?
2025-05-16 8:59 AM
What do you mean by starting from an empty directory? Do you want me to delete the current WB project and regenerate the ioc?
Thanks,
Bam
2025-05-16 9:17 AM
Hello @Bam,
Yes, or from the Workbench tool, saving your project with another name to start with a new project directory. "ftl" directory and its files are generated by Workbench Tool (it is not the case if you load an ioc with CubeMx tool and generate the code).
2025-05-16 9:31 AM
2025-05-16 9:36 AM
The new project gave the same warning.
2025-05-17 6:05 AM
Finally figured out the issue. I was trying to use the ioc file to create the project directly from STM32CubeIDE. The correct way of doing this is to use the project file located in workbench folder:
..\.st_workbench\projects\Another_FOC\Another_FOC\STM32CubeIDE\.project
Hopefully this helps someone else in the similar situation.
Thanks,o
Bam