cancel
Showing results for 
Search instead for 
Did you mean: 

SPI on STM32F4

red_bambakadis
Associate
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.

4 REPLIES 4
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
Up vote any posts that you find helpful, it shows what's working..
red_bambakadis
Associate
Posted on March 07, 2013 at 20:09

Even the NSS pin?

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
Up vote any posts that you find helpful, it shows what's working..