I have a small project that configures several times, SPI + DMA written with Standard Peripheral Library (see attached).
The main project is using the new HAL lib (STM32CubeF4) and the easiest integration will be to convert the small project.
You have the liberty to rewrite sections of the code.