Skip to main content
Associate
March 25, 2026
Question

STM32F407 SPI+DMA+interrupt with standard library

  • March 25, 2026
  • 3 replies
  • 293 views

Could you provide a routine for reading and writing external flash using spi+dma+ interrupt in the STM32F407 standard library?

3 replies

MGogr.1
Senior
March 25, 2026

Why don't you try Winbond W25Qxx flash series which works on SPI.

SimbaaAuthor
Associate
March 25, 2026

Currently, Winbond flash is used. Could you provide an example routine for reading and writing external flash using spi+dma+ interrupt in the STM32F407 standard library?

MGogr.1
Senior
March 25, 2026
Technical Moderator
March 25, 2026

Hello @Simbaa 

Please refer to the example SPI_FLASH under "Project\STM32F4xx_StdPeriph_Examples\SPI\SPI_FLASH" on STM32F4xx_DSP_StdPeriph_Lib package.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question.Saket_Om"
SimbaaAuthor
Associate
March 27, 2026

Could you provide the download link or directly offer the reference program

March 29, 2026

You can set up SPI with DMA for TX/RX and use the transfer-complete interrupt to handle flash read/write callbacks it keeps things efficient and non-blocking. ST’s examples for SPI+DMA are a good starting point. I’ve seen similar implementation tips while checking https://apklivecoolmex.com/download-love678-mod-apk/.