Why does enabling SPI peripheral in STM32 Nucleo L476RG change the master bit to 0?
Guys I'm trying to implement the SPI in my stm32 Nucleo l476RG without hal drivers.
I have have implemented the spi configuration using spi_init function
then when it ready for the communication i enable the SPE: SPI enable using a seprate function which is
the problem here is when pSPIX->CR1 |= (1<<SPI_CR1_SPE); line executes it changes the master bit in the cr1 register to 0 again
how can i slove this?
I have have implemented the spi configuration using spi_init function
then when it ready for the communication i enable the SPE: SPI enable using a seprate function which is
the problem here is when pSPIX->CR1 |= (1<<SPI_CR1_SPE); line executes it changes the master bit in the cr1 register to 0 again
how can i slove this?