EVLSPIN32G0A1: Issue with compiling code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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:
- Board: EVLSPIN32G0A1
- Motor: GBM2804H 100T
Software:
- OS: Windows 11
- System Type: x64
- Motor Control Workbench v6.3.2
- STM32CubeMX v6.14.1
- STM32CubeIDE v1.18.1
- STM32Cube MCU Package v1.6.2
Sequence of operation to reproduce error:
I folowed the instructions in section 3.2 of UM3398 (User's manual: Getting started with EVLSPIN32G0A1)
- Launch the Motor Control Workbench tool.
- Select the target control algorithm from Field Oriented Control (FOC) or 6STEP.
- Select the target motor or create a new motor.
- Select the target evaluation board in the inverter section.
- Configure the solution according to application requirements.
- Generate the project and compile the code
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.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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?
Best regards.
GMA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-15 11:39 PM
The ftl folder is present in the project directory.
Attached is the stwb6 file (remove .txt extension). I have also included the ioc file in case you need it.
Thanks,
Bam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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?
Best regards.
GMA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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).
Best regards.
GMA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-16 9:31 AM
Same issue in the new project. See attached file.
I saw this warning in the previous project. I'm not sure if it is part of the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-16 9:36 AM
The new project gave the same warning.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
