2013-03-06 06:41 PM
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? Red.2013-03-06 08:51 PM
The F2/F4 are simpler, define all pins as AF_PP or AF_OD, and the peripheral will take care of the direction.
2013-03-07 11:09 AM
Even the NSS pin?
2013-03-07 11:23 AM
Yes, but mind
https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/DispForm.aspx?ID=28505&RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex%5fmx%5fstm32%2fSPI%20problem%20with%20hardware%20NSS%20management&Source=https%3A%2F%2Fmy%2Est%2Ecom%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fc...2013-03-07 02:17 PM
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.