2022-12-15 04:43 AM
Hi there
How to calculate the maximal possible CPU execution time for the STM32WB55 when running fetching the code from external flash?
Kind Regrads
2022-12-15 08:06 AM
Hello @Community member,
The CPU can execute code from the Quad-SPI memory when using the memory-mapped mode. I advise you to refer to the table 2 of the AN4760 where you can find the maximum QUADSPI speed of STM32WB55, of course added to the datasheet of the product.
Regards,
Chahinez.
2022-12-15 11:02 AM
Dependent on multiple factors.
Not an inherently cached architecture.
Suggest you benchmark with DWT's CYCCNT to evaluate with your own HW, and code construction.
Figure each instruction is 16-bit wide, and you know the QSPI clocking speed, and CS cycles, you can probably put a floor in the execution speed.
2022-12-16 01:29 AM
Hi all,
Thanks for the quick answers. I did a calculation with this Information for a best case scenario:
So if we execute a code that contains no jumps, the code can be fetched without sending the address again.
Can someone verify this numer for a best case scenario? Are there any necessary wait cycles that I missed?