STM32MP157 GPIO access
Hi team,
I have an STM32MP157 board with a Cortex-M4 processor. I have a simple task, which is to toggle the GPIO at maximum speed with accuracy, ensuring that the clock width does not vary.
The maximum toggle speed we require is approximately 15ns between the rising and falling edges. Using the Keil IDE, it is possible to achieve this speed with the Nucleo F746ZG board, which has the same speed as the STM32MP157 for the Cortex-M4 processor.
I have generated code in Cube IDE, but the speed we achieved for the STM32MP157 Cortex-M4 is slow, around 60ns. The code used to toggle the GPIO in a while loop is as follows:
GPIOF->BSRR = LED_Pin << 16;
GPIOF->BSRR = LED_Pin;
I appreciate any assistance in improving the toggle speed for the STM32MP157 Cortex-M4.
Thank you.
Kundan Jha
