Become a leader in the IoT community!
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
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
#define SPI_CR1_SPE 6
void SPI_PeripheralControl(SPI_RegDef_t *pSPIX, uint8_t EnOrDi)
{
if(EnOrDi == ENABLE)
{
pSPIX->CR1 |= (1<<SPI_CR1_SPE);
}
else
{
pSPIX->CR1 &= ~(1<<SPI_CR1_SPE);
}
}
the problem here is when pSPIX->CR1 |= (1<
CONTRIBUTE TO THIS THREAD