This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F28379D: FCL source files

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE

Hello everyone,

by studying the two example projects
       dual_axis_servo_drive_fcl_qep_f2837x
       fcl_f2837x_tmdxiddk
from the software package C2000Ware_MotorControl_SDK_4_00_00_00
it is clear to me that FCL needs
       fcl_cla_code.cla / fcl_cpu_code.c for 1 motor and
       fcl_cla_code_dm.cla / fcl_cpu_code_dm.c for 2 motors.
But in the folder exist other source files.
(I also noticed that both files fcl_foc_cla.cla and fcl_cpu_cla.cla are absolutely identical. These two files are only minimally different from the file fcl_cla_code.cla.)


Can someone tell me where and when the individual source files and especially the files in the red frame can be used.

Thanks in advance - Bui

  • fcl_cla_code.cla and fcl_cpu_code.c are for the dual core F2837x/F283x/F28004x MCU with CPU and CLA, the fcl_cla_code.cla includes the functions that will be executed on CLA, the fcl_cpu_code.c includes the functions that will be executed on CPU.

    fcl_foc_cpu.c is for the F28002x MCU only with CPU, it includes the functions that will be executed on CPU.

    All files with _dm name that means these files for the dual motor control with CPU + CLA or only CPU.

    If you refer to a FCL example project that could help you to understand these files

  • Good morning Luo,

    thank you very much for the answer!
    I understood that with the file fcl_foc_cpu.c I can control both Id and Iq of one motor only with the CPU. And with fcl_foc_cpu_dm.c is possible to control 2 motors, of course only with the CPU.
    What about the two files fcl_foc_cla.cla and fcl_cpu_cla.cla? Why are the two absolutely identical? From the name fcl_foc_cla.cla I assume that both Id and Iq controllers run on the CLA. But when I examine in the source code, I notice that only Iq controller is implemented in this file. Then what explanation can I have for these two files?

    Thanks in advance - Bui

  • fcl_cpu_cla.cla is not used in examples in motor control SDK. You may refer to the FCL example projects to know what files will be used and how to call the functions in these files.