2022-05-14 12:26 AM
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.
Solved! Go to Solution.
2022-05-15 11:42 PM
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.
2022-05-15 11:42 PM
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.