2018-11-28 01:52 AM
Hello,
I am working with STM32H7, Nucleo board and Atollic TrueStudio.
I have a test routine processing an array of data that is in flash, test routine is also in flash. Around it I set and clear a portbit and measure execution time.
Now I wanted to speed it up by using cache. I read that flash has two waitstates without using cache and this can be improved to virtually 0 waitstates with using cache. So I expected 1/3 of the execution time. But I got only 10% less. I just included SCB_EnableICache ();
Further reading tought me that MPU can define memory regions as cachable, but
Did I miss something?
What options do I have to improve performance?
Any help and hints are welcome
Thanks a lot
Martin