Boss lady
DIIDevHeads IoT Integration Server
•Created by ZacckOsiemo on 6/28/2024 in #firmware-and-baremetal
Does anyone know if there are any special steps to using SPI1 on the STM32F407-DISC1 board?
firstly you have to initialize the SPI1 peripheral by configuring its registers. Set the CR1 register to specify the desired settings for the SPI mode, data format, clock polarity, and clock phase. You can refer to the reference manual of the STM32F407-DISC1 board for more details on the available configuration options, and also enable the SPI1 peripheral by setting the SPE bit in the CR1 register. This enables the SPI1 interface and allows data transfer to occur.
this should set up ur cr1 of SPI1
9 replies