Skip to main content
Sindhu Vadde
Associate III
May 14, 2022
Solved

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

  • May 14, 2022
  • 1 reply
  • 1373 views

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.

This topic has been closed for replies.
Best answer by PatrickF

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.

1 reply

PatrickF
PatrickFBest answer
ST Employee
May 16, 2022

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 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent