Hi All,
I have a step function defined in .c file along with some global variables and initialize function.
I just want to implement the step function in the cla by calling it from .cla file.
I want to transfer the step function cla program memory. In order to so, I added the following pragma before the function definition:
#pragma CODE_SECTION(functionname,"CLA1Prog")
on doing so i get the following error:
output section "Cla1Prog" has both CLA and non-CLA sections; such mixing in the same output section is illegal; could not link section
"Cla1Prog:_Cla1Task1:cla_task.obj"X.
IF i include the .c file in my .cla file, the function gets compiled by CLA. However there are other variables and functions which gets compiled by both c28x and cla and I get redefinition error.
How can I transfer the function to CLA program memory so that it is compiled by only CLA compiler? Can I allow a function defined in .c file to get compiled by only CLA and not by C?