Having trouble with NSS control using STM32H742VIT6
Hello,
I've configured SPI1 on STM32H742VIT6 connected to pins PA4-7 using AF5.
Here is a dump of the relevant SPI1 registers:
SPI1->CR1 = 00000001
SPI1->CR2 = 00000000
SPI1->CFG1 = 70000007
SPI1->CFG2 = 20400000
SPI1->SR = 00001002The MCU should be the SPI master and I am trying to control the NSS output as follows (NSS is on PA4):
__INLINE void bsp_spi_nss_assert(void)
{
GPIOA->BSRR = GPIO_BSRR_BR4;
}
__INLINE void bsp_spi_nss_release(void)
{
GPIOA->BSRR = GPIO_BSRR_BS4;
}I find that the NSS signal is asserting though and remains low forever (so I don't think the bsp_spi_nss_release function is working).
Can someone recommend anything to try which I might be missing?
Thanks!
-Brian
