cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Enable Hardware NSS Signal For SPI2 in Stm32mp157a Processor.

Sindhu Vadde
Associate III

Hi,

We are using stm32mp157a processor in my custom board.I need to select SPI2_NSS for PB9 But when i configure PB9 as SPI2_NSS it is not configured as SPI2_NSS.We are unable to enable Hardware NSS signal Option in Stm32 cube MX but it is mentioned in Data Sheet.How can i come out of this?

Thank You.

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

Hi @Sindhu Vadde​ ,

On STM32CubeMX, the 'Hardware NSS Signal' option is available only for Cortex-M4 usage with STM32CubeMP1 HAL.

On Linux, the NSS output are managed in SW and is setup using Device Tree. Note that any GPIO could be used (as NSS output is not handled by SPI HW but as GPIOs).

See https://wiki.st.com/stm32mpu/wiki/SPI_device_tree_configuration#DT_configuration_example

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
PatrickF
ST Employee

Hi @Sindhu Vadde​ ,

On STM32CubeMX, the 'Hardware NSS Signal' option is available only for Cortex-M4 usage with STM32CubeMP1 HAL.

On Linux, the NSS output are managed in SW and is setup using Device Tree. Note that any GPIO could be used (as NSS output is not handled by SPI HW but as GPIOs).

See https://wiki.st.com/stm32mpu/wiki/SPI_device_tree_configuration#DT_configuration_example

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.