AnsweredAssumed Answered

Problem to reach high Frequency on GPIO

Question asked by Lex Trc on Aug 25, 2017
Latest reply on Sep 12, 2017 by Lex Trc

Hi,

 

i'm using stm32 nucleo board. The oscillator is configured to 32MHz speed.
Now, if i use the easy following code in the main:

while(1)

{

   HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_Pin, 1);
   HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_Pin, 0);

}

 

the frequency i measure on the LD2 pin is only 750KHz. This is really strange, i expect
to run more quick than 750KHz only.

 

Can someone help me?

Outcomes