Skip to main content
Visitor II
May 21, 2024
Question

Flash memory frequency using QSPI is too slow.

  • May 21, 2024
  • 1 reply
  • 1372 views

The stm32h747 controls Flash memory using qspi.

Flash is using mt25ql256.

Write and Read actions have been confirmed.

But the frequency doesn't come out like a data sheet in flash memory.

The speed of the QSPI clock is around 1.25Mhz.
 
QSPI  ClockPrescaler  : 2

 
peter81_2-1716258421736.png

 

 
The frequency does not come out like a flash memory data sheet.
 
peter81_3-1716258508094.png

 

I want to know what the problem is, please help me!!

 
 
 
 
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
May 21, 2024

Unpack the clocks as the MCU sees them.

 printf("\n\nCore=%d, %d MHz\n", SystemCoreClock, SystemCoreClock / 1000000);
 printf("HCLK=%d\n", HAL_RCC_GetHCLKFreq());
 printf("APB1=%d\n", HAL_RCC_GetPCLK1Freq());
 printf("APB2=%d\n", HAL_RCC_GetPCLK2Freq());

Likely not running with the bus clocks you think it is.

Check the clock initialization code doesn't fail, either HSE or PLL failing to come ready would be my guess.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..