Skip to main content
JAzri.1
Visitor II
May 8, 2020
Solved

Multiple spi_nss pins?

  • May 8, 2020
  • 1 reply
  • 1871 views

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.
Best answer by berendi

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

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.