10.4 CLA Configuration and Debug
This section discusses the steps necessary to configure and debug the CLA.
10.4.1 Building a CLA Application
The control law accelerator can be programmed in either CLA assembly code, using the instructions described
in
, or a reduced subset of the C language. CLA assembly code resides in the same project with
C28x code. The only restriction is the CLA code must be in its own assembly section. This can be easily done
using the
.sect
assembly directive. This does not prevent CLA and C28x code from being linked into the same
memory region in the linker command file.
System and CLA initialization are performed by the main CPU. This would typically be done in C or C++ but can
also include C28x assembly code. The main CPU will also copy the CLA code to the program memory and, if
needed, initialize the CLA data RAM(s). Once system initialization is complete and the application begins, the
CLA will service its interrupts using the CLA assembly code (or tasks). The main CPU can perform other tasks
concurrently with CLA program execution.
The CLA Type 0 requires Codegen V5.2.0 or later with the compiler switch: --cla_support=cla0.
Control Law Accelerator (CLA)
578
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Summary of Contents for TMS320 2806 Series
Page 2: ......