Other Parts Discussed in Thread: TMS320F280025, SYSCONFIG, C2000WARE
We are doing model based design for digital control of power converter. The modelling and simulations are done in Simulink and then code is generated using the Simulink Embedded Coder. The frame work code is generated mostly using the SysConfig tool. All the control peripherals such as ADCs, EPWMs etc as well as communication interfaces have been setup using the latest version of the SysConfig tool. Earlier we have been using the TMS320F280025 controller without CLA. The integration of embedded coder generated files was very simple in that case. We only copied three generated files i.e model_name.C, model_name.h & rtwtypes.h files in our existing CCS project. We achieved the desired control loop execution just by calling the model step function at the precise timing.
We are just migrating to the Delfino series to take benefit of the increased processing power and the CLA. Again we have setup all the peripherals using the SysConfig tool. The CLA tasks and interrupts have also been setup with the SysConfig tool. I have done some basic testing to verify that CLA is setup correctly to execute the code. CLA Deep Dive submodule in the C2000Academy was helpful. I am facing difficulty in identifying the proper procedure/steps for incorporating the embedded coder generated CLA code into our CCS project. I have already gone through the Mathworks documentation "Using the Control Law Accelerator (CLA)"but the process of combining the generated files into the existing CCS project is not clear to me. It will be nice is some one can guide on the below points:
1- Is it right approach to configure all the peripherals in CCS project and then integrated the embedder coder files into it or otherwise i.e. generate project from embedded coder and then add peripheral configurations and custom code to it?. We are familiar and comfortable with the former approach i.e. integrating the generated files into our existing project.
2- Please provide guidelines for both approaches. If the first approach can work then kindly guide which generated files must be added to the project and the ones that can be ignored for e.g. there are lot of peripheral configuration files that are already generated by the SysConfig tool.
3- Any other technical literature on the subject that will be helpful in the CLA code configurations in the Simulink Embedded Coder and interfacing with the C28x code.

