cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple spi_nss pins?

JAzri.1
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
berendi
Principal

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.

View solution in original post

1 REPLY 1
berendi
Principal

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.