Skip to main content
red_bambakadis
Associate
March 7, 2013
Question

SPI on STM32F4

  • March 7, 2013
  • 4 replies
  • 986 views
Posted on March 07, 2013 at 03:41

Hello,

       migrating from STM32F1xx to STM32F407. Having difficulties configuring 4-wire serial, sub-optimal documentation for the F4 series, in my opinion. There's a nice section in the reference manual for the F1 about configuring the GPIO's (p. 160 of the RM0008 doc., CD00171190), see below. Is there anything similar for the F4?

 0690X000006053iQAA.png 

Red.

    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    March 7, 2013
    Posted on March 07, 2013 at 05:51

    The F2/F4 are simpler, define all pins as AF_PP or AF_OD, and the peripheral will take care of the direction.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    red_bambakadis
    Associate
    March 7, 2013
    Posted on March 07, 2013 at 20:09

    Even the NSS pin?

    Tesla DeLorean
    Guru
    March 7, 2013
    Posted on March 07, 2013 at 23:17

    Even the NSS pin?

    Yes, If it is controlled by the peripheral. If you're using some GPIO pin you toggle manually, the peripheral is not involved, and you'll want to configure it as a GPIO.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..