I've got some working SPI code for the F2 series port I'm working on. Its on my github:


Although setting up the GPIOs and alternate functions is different on F2 the SPI peripheral should be code compatible. The one difference I can see is that you need to set the SSOE bit in SPI_CR2. This had me confused for a long while too, see the paragraph about NSS in the reference manual section 25.3.1 for an explanation.


On 25 Sep 2011, at 05:20, Armin Schlegel wrote:


i got similar problems. Have you got working until now?

Best Regards,


>Hi guys...
>I'm in trouble with SPI1 of my cortexm3. I'm trying only to send some
>packet on the line and to view it trhrough oscilloscope.
>Can you take a look to my code? I'm going crazy.
>Thanks in advance
>P.S. Is there working example about SPI using libopenstm32? I found it
>in examples/stm32/stm32-h103/spi but is not complete.
>Roberto (aka formica) Marino
>Computer Engineer
>FSF Member #9647 - Me|Lug Member
>Mobile: 349-5740870
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
libopenstm32-devel mailing list