Skip to main content
Visitor II
May 14, 2022
Solved

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

  • May 14, 2022
  • 1 reply
  • 1343 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

    PatrickFAnswer
    Technical Moderator
    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.