Posted on May 17, 2018 at 15:38 Hi
Frigerio.Danilo
,
First, we may ask about the relevance of toggling a GPIO with CPU at maximum clock (as stated by Avatar)?
For some use-cases, you may use a timer ...
Back to the explanation of the discrepancy between results with STM32F7 and the ones with STM32H7: the main reason is that both families don't share the same architecture:
- STM32F7 has one bus matrix and both the Core and and GPIO are connected to that same bus matrix
- STM32H7 has three domains.Cortex-M7 is connected to AXI bus matrix while the GPIO is connected to another AHB bus matrix. Then, a latency is introduced because of bridges connecting these bus matrices.
You may refer to 'System Architecture' section in the reference manuals of both products for more details.
-Amel