2015-08-28 03:01 PM
Hello.
I'm having problems with STM32F103 SPI peripheral. On STM32F072 I could have proper transmission with hardware NSS management, but on STM32F103 it is just pulled low and it stays like that.Is there any solution for that?2015-08-29 12:07 PM
Maybe you can shine a light on what spi port your using, maybe some used pins and preferably some code snips.
2015-08-29 03:42 PM
Of course. I'm using SPI1 and its PA4 PA5 PA6 and PA7.
I'm initializing SPI with that code:RCC->APB2ENR |= RCC_APB2ENR_SPI1EN;SPI1->CR2 = SPI_CR2_SSOE;SPI1->CR1 = SPI_CR1_MSTR | SPI_CR1_BR_2 | SPI_CR1_SSI | SPI_CR1_SPE;