# HAL SPI NSS Pin

I have here an STM32F303K8T6 and would like to use the SPI to read out a sensor, but without setting the NSS manually by reseting and setting a GPIO pin. I have heard, that the NSS Hardware does not support the automatically reseting and setting for the Master, but only for the slaves?

Does the function HAL_SPI_TransmitReceive(...); automatically set the NSS pin in software? But if so, how do I configure my NSS pin to achieve this.

What I have done so far is the following:

    HAL_GPIO_WritePin(GPIOA,GPIO_PIN_15,GPIO_PIN_RESET);