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:如何通过缓存运行代码

Guru**** 2416110 points
Other Parts Discussed in Thread: OMAP-L138

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1533582/omap-l138-how-to-run-code-through-cache

器件型号:OMAP-L138
主题中讨论的其他器件:OMAPL138

工具/软件:

尊敬的团队:

我使用的是 OMAPL138、并且因为我有 2 个功能、它们在外部引脚上触发、因此会以大约 40us(微秒)的间隔定期执行、

但很多时候、我们发现处理器执行这些函数花费了更多的时间、可能是因为缓存丢失

因此、在调试模式下、我将这些函数放在 lnk.cmd 文件的 code_section 和“mydata"部分“部分下为 mydata :load >> cache_L2RAM、下面是表达式

#pragma CODE_SECTION (MainADCSampleCollectSmart、“MyData")“)
Void MainADCSampleCollectSmart (void);

#pragma CODE_SECTION (GPIOIsr、“MyData")“)
void GPIOIsr (void);

在上面的情况下,它的工作是完美的

所以我尝试在运行模式下将这些函数放在 L2 缓存中、但无法这样做

请就此提出建议

谢谢

此致、

Ashish