STM32F031 SPI NSS in slave mode to frame beginning and end of a transfer
I am using a STM32F031 as a SPI slave device in close proximity to some motors that can cause some noise. I believe what happens is occasionally the STM interprets noise as a SPI clock which shifts my data one or more bits off. In the event I have a partial byte transferred due to unintended clocks then what is best to recover.
Does the master raising the hardware NSS signal high transfer what ever data is in the shift register into the RX FIFO and flush the partial TX byte? Do I need to poll for a condition of NSS high while BSY is set and reset the SPI manually in software?
