This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP-L138: How to run code through cache

Part Number: OMAP-L138
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