I came across a strange behavior of the HAL_SPI_Transmit function below the code:
And according to what above, this part of the program should send 3 bytes of data with a value of 200 (DEC) and send 225 look at the attached waveforms. The first byte doesn't even get decoded by Saleae Logic.
Code: C / C++
And according to what above, this part of the program should send 3 bytes of data with a value of 200 (DEC) and send 225 look at the attached waveforms. The first byte doesn't even get decoded by Saleae Logic.
![[STM32] [SPI] [HAL] HAL_SPI_Transmit - sending incorrect data. [STM32] [SPI] [HAL] HAL_SPI_Transmit - sending incorrect data.](https://obrazki.elektroda.pl/7069665700_1489917038_thumb.jpg)
![[STM32] [SPI] [HAL] HAL_SPI_Transmit - sending incorrect data. [STM32] [SPI] [HAL] HAL_SPI_Transmit - sending incorrect data.](https://obrazki.elektroda.pl/5422554300_1489917039_thumb.jpg)
![[STM32] [SPI] [HAL] HAL_SPI_Transmit - sending incorrect data. [STM32] [SPI] [HAL] HAL_SPI_Transmit - sending incorrect data.](https://obrazki.elektroda.pl/1885333000_1489917039_thumb.jpg)