Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

STM32 SPI not operating - unable to determine error in code

$
0
0
Hello,

I’m hoping someone could help me with my code. I am trying to run SPI on a STM32F407VG discovery board without using cubemx and shifting registers mostly. When I look on an oscilloscope, the Slave/Chip select goes low and high correctly but I am writing data to SPI1 DR and I don't see anything on MOSI or SCLK. What have I done wrong? Using HAL libraries and auto generated code makes the SPI work fine. C code below:

C:
/* ENABLING AND CONFIGURING CLOCKS */
RCC->AHB1ENR |=...
STM32 SPI not operating - unable to determine error in code

Viewing all articles
Browse latest Browse all 4923

Trending Articles