Other Parts Discussed in Thread: C2000WARE-DIGITALPOWER-SDK, TIDM-1007, TIDM-02002, TIDM-1000
Tool/software: Code Composer Studio
Hi all,
we mainly want to achieve better load sharing between CPU and CLA regarding the control loop. To our knowledge the Estimator functions cannot be executed in the CLA with the currently released MotorControl SDK but we wanted to execute the remaining functions like clarke, pi, traj etc. on the CLA.
As far as I see it, the inline functions in the headers should not be the problem. Currently the main issue I see are the functions declared in the source files of the different modules. I assume the .c files are automatically build using the CPU compiler and then the linker links the calls used in the CLA code to the CPU code lying in inaccessible memory regions. During debugging I verified that the CLA branches to inaccessible memory at the truncated memory adress of the corresponding function.
The only solution I can currently see is to duplicate all the files prepending a cla_ to all filenames, functions, structs, etc and to rename the cla_*.c files to cla_*.cla so that the CLA compiler is used for them.
Is there a major mistake I did regarding the use of the different modules in the CLA?
Best regards,
Wolfgang