cancel
Showing results for 
Search instead for 
Did you mean: 

EVLSPIN32G0A1: Issue with compiling code

Bam
Associate

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 errorFreeMarker 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

1 ACCEPTED SOLUTION

Accepted Solutions
Bam
Associate

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

View solution in original post

8 REPLIES 8
GMA
ST Employee

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?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
Bam
Associate

The ftl folder is present in the project directory.

Project Directory.png

 

Attached is the stwb6 file (remove .txt extension). I have also included the ioc file in case you need it.

Thanks,

Bam

GMA
ST Employee

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?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
Bam
Associate

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

GMA
ST Employee

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).

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
Bam
Associate

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.

Invalid Project Path.png

Bam
Associate

The new project gave the same warning.

Invalid Project Path_2.png

Bam
Associate

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