2024-05-15 02:59 AM
Hello,
I'm trying to generate continous stream of random bits on SPI MOSI (for eye pattern analysis).
I'm making tests with 2 byte sequences.
I'm starting DMA transfer with :
HAL_SPI_Transmit_DMA(&hspi2, &spi_outdata, 2);
in the HAL_SPI_TxCpltCallback I start another SPI transfer.
I notice few tenths (cca. 60) of microseconds gaps on clock and data signals on SPI MOSI output.
Is there any way to achieve continuous clock and data signals on SPI ?
If I try to send on Half Callback, DMA is busy - it doesn't send.
Can I somehow only add to output buffer on half-complete callback or any other solution?
Thanks in advance,
regards.
Solved! Go to Solution.
2024-05-15 06:51 AM - edited 2024-05-15 06:51 AM
Which STM32?
> Is there any way to achieve continuous clock and data signals on SPI ?
Yes - use circular DMA.
JW
2024-05-15 06:51 AM - edited 2024-05-15 06:51 AM
Which STM32?
> Is there any way to achieve continuous clock and data signals on SPI ?
Yes - use circular DMA.
JW