AnsweredAssumed Answered

SPI Master NSS always low in STM32F4

Question asked by Andres Cao on Mar 3, 2017
Latest reply on Aug 10, 2017 by Vangelis Fortounas

Hi guys!


I'm configuring the Nucleo 64 with the STM32F446RE to use SPI as a Master.


The problem I'm having right now is that the NSS pin is always low. Clock and MOSI are perfect. What I would like is that the NSS is high, and goes low during the transmission, then high again.


I've tried setting the NSS as Hardware output, and Software in Cube, but still failed to get what I want. 


I think this configuration should be sorted with the following 3 bits, from CR1 and CR2. Right now Cube is setting SSOE= 1, SSM=1, SSI=1. And the NSS pin is configured as hardware output in Cube. 



Any clues on how should I setup this? I would like to avoid having to use a random pin as CS and pull it manually.