Skip to main content
kgang
Associate II
June 30, 2020
Question

Code execution from SRAM of STM32H743 MCU.

Hi,

1.Wanted to know does the execution time reduces(speed increases). If text segment is brought to SRAM from flash at start up and executed in STM32H743 MCU

2.Wanted to know are there any optimization techniques to improve speed like using I cache and D cache.

Any comment is highly appreciated.

Regards,

krishna.

This topic has been closed for replies.

1 reply

TDK
June 30, 2020

In general:

  • Enabling ICache increases execution speed.
  • Enabling DCache increases execution speed

Moving code to SRAM *might* increase speed but this will depend on your program. If DCache is disabled, it will almost certainly help, but if DCache is enabled the benefit might be less or none. The only way to answer for sure is to do the change and test it with your code.

"If you feel a post has answered your question, please click ""Accept as Solution""."