Skip to main content
Associate
Mar 25, 2026 7:09 AM UTC
Question

STM32F407 SPI+DMA+interrupt with standard library

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

7 replies

MGogr.1
Senior
Mar 25, 2026 7:16 AM UTC

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

SimbaaAuthor
Associate
Mar 25, 2026 7:35 AM UTC

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
Mar 25, 2026 8:51 AM UTC
ST Technical Moderator
Mar 25, 2026 4:35 PM UTC

Hello @Simbaa 

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om
SimbaaAuthor
Associate
Mar 27, 2026 2:31 AM UTC

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