Skip to main content
JAzri.1
Visitor II
May 8, 2020 6:44 AM UTC
Solved

Multiple spi_nss pins?

I am assigning pins on a STM32F446 micro in cubemx, and I would like to connect multiple chips to the micro on one spi bus.

I would like each chip to be connected to a separate chip select pin, aka spi_nss.

When I try to assign a second spi_nss pin, it deletes the first spi_nss pin.

How do I assign multiple spi_nss pins?

This topic has been closed for replies.
berendi
berendiBest answer
Principal
May 8, 2020 7:10 AM UTC

If the MCU is the only master with several slaves connected, then don't use hardware SPI NSS.

Just connect the chip select signals from the slaves to any free GPIO pin.

1 reply

berendi
berendiBest answer
Principal
May 8, 2020 7:10 AM UTC

If the MCU is the only master with several slaves connected, then don't use hardware SPI NSS.

Just connect the chip select signals from the slaves to any free GPIO pin.