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.

28034/28035 代码在FLASH 跟RAM执行时间的区别?//What is the difference between 28034/28035 code execution time in FLASH and RAM?

最近一个项目,

对程序执行时间有严格要求, 用的是28035的MCU。

我测试一段电机控制的运算程序。大概2K左右。 在FLASH里执行的时间大概90US左右.

尝试将这部分代码移植到RAM中运行。 发现执行时间还是跟在FLASH差不多,87US左右,少的不明显。

实际运行,用IO翻转测试运行时间。

用JTAG的仿真器查看,该部分移植的代码地址已经在RAM地址区间。

RAM地址区间是0X009000--0X009800 2K字

因为之前有用过2808系列的DSP,将代码从FLASH移动到RAM去运行节省20%左右的执行时间,但是现在28035的这种操作似乎没有效果。

想知道造成这种的原因,是因为主频差异的原因吗? 28035主频60M 2808主频100M

期待回复!!感谢!

A recent project,

There are strict requirements for program execution time, using the MCU 28035.

  I test a calculation program for motor control. About 2K. The execution time in FLASH is about 90US.

Try to port this code to RAM and run it. It is found that the execution time is still about the same as FLASH, about 87US, and the less is not obvious.

Actual running, use IO to flip test running time.

Using a JTAG emulator to view, the code address ported in this part is already in the RAM address range.

RAM address range is 0X009000--0X009800 2K words

Because the 2808 series DSP was used before, moving code from FLASH to RAM to save execution time by about 20%, but now this operation of 28035 seems to have no effect.

Want to know the cause of this, is it due to the difference in main frequency? 28035 frequency 60M 2808 frequency 100M

We are expecting a reply! !! thank!