cancel
Showing results for 
Search instead for 
Did you mean: 

Code execution from SRAM of STM32H743 MCU.

kgang
Associate II

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.

1 REPLY 1
TDK
Guru

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".