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.

TMS320F28377D: Why the execution time didn't get faster when I run the code in the RAM

Part Number: TMS320F28377D

Hello, experts:

I encountered some issues while using the function of coping code from flash to ram. In fact, in the compiler, it is already possible to successfully see that some functions have been placed in RAM space. However, the actual execution time of the test did not decrease.

Compilation also did not report any errors.

The execution time of the code without being placed in RAM is approximately 15 microseconds, while the execution time after being placed in RAM is still around 15 microseconds.

  • Hello Beck,

    When running the code in debug mode, can you verify where the code is running from in both situations? You can use the Disassembly view to view the addresses of the code being executed, this will help determine whether it's running from RAM or Flash. Flash should be significantly slower than RAM, likely you're running the code from the same type of memory in both instances you mentioned.