0 Members and 1 Guest are viewing this topic.
void SPIData8(int data){SPI4->TXDR = data;SPI4->CR2 = 1;SPI4->CR1 = SPI_CR1_CSTART;while(SPI4->SR & (SPI_SR_EOT));}
Please define “does not work”. We don’t have crystal balls...
The documentation for the SPI peripheral in the STM32H7 series is utter crap and reads like it was written by an eight year old for whom English is their fifth language.
Quote from: Sal Ammoniac on September 04, 2020, 06:26:05 amThe documentation for the SPI peripheral in the STM32H7 series is utter crap and reads like it was written by an eight year old for whom English is their fifth language.LL's #UM2217https://www.st.com/resource/en/user_manual/dm00392525-description-of-stm32h7-hal-and-lowlayer-drivers-stmicroelectronics.pdf
I'm going with he didn't turn the clocks on to the SPI and GPIO peripherals.
QuoteI'm going with he didn't turn the clocks on to the SPI and GPIO peripherals.The clocks are On,do not worry,Have you done any Direct register SPI transfer in H series? if so, please share the code.