A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Configuring the SPI interface is quite basic. Is seems that you need to spend some time gaining familiarity with the basics of the STM32 and the STM3210C eval board before moving on to more advanced projects.
There are plenty of basic examples - including SPI - included with the standard peripheral library (aka ''FW Library'')
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.