Hey all,
I presently have an ISR that is written in C that is running on the main C28x processor of an F28035 micro. Unfortunately it is getting to the point that the ISR takes up the majority of the clock cycles between ISR calls. I was hoping to reduce the C28x processor burden by moving some of the functionality over to the CLA. Running custom C code on the CLA on a 28035 isn't very well documented for CCS 6.1.3. As far as I can tell I need to manually setup a scratch pad since the compiler doesn't automatically allocate one. I haven't found any examples for the F28035 micro about how to do this.
The closest thing I've seen is the CLA C Digital Power Library v 3.5 reference. This is based off of DP Library functions and it makes no mention of a scratchpad and the associated example code doesn't provide a sample linker file. I'm guessing the code is written in such a way it doesn't require a scratchpad. I'm just trying to fully understand what I need to do in terms of getting code up and running on the CLA.
Based on the wiki page it looks like I just need to add the following line to my linker.
.scratchpad : > CLARAM1, PAGE = 1
Any clarification would be helpful. Thanks!
Lance