Other Parts Discussed in Thread: OMAPL138,
Tool/software:
Dear Team,
I am using OMAPL138 and in that i have 2 functions which are executing periodically at an interval of approx 40us (micro second) as they are triggered on external pin,
But many times we found that processor took some more time to execute these functions may be because of cache miss
So in debug mode i place those functions under CODE_SECTION and "mydata" section in lnk.cmd file is mydata: load >> CACHE_L2RAM, below is the expression
#pragma CODE_SECTION(MainADCSampleCollectSmart,"mydata")
void MainADCSampleCollectSmart(void);
#pragma CODE_SECTION(GPIOIsr,"mydata")
void GPIOIsr(void);
In above scenario it works perfectly ok
So i tried to place these functions in L2 cache in run mode, but could not able to do so
Please give suggestions on this
Thanks
Regards,
Ashish