2020-06-30 01:47 AM
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.
2020-06-30 06:33 AM
In general:
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.