Skip to main content
Graduate
November 21, 2025
Question

SPI Receive - pulse in MOSI line

  • November 21, 2025
  • 3 replies
  • 206 views

sreyas40_0-1763725623576.png

The above image represents logic analyzer output when HAL_SPI_Receive_DMA is executed. My doubt is regarding the single high pulse at MOSI line. During HAL_SPI_Transmit_DMA , no issues. Is this normal behaviour? STM as Full duplex master, i have disconnected the slave to check if it was responsible for the high pulse.

    This topic has been closed for replies.

    3 replies

    Super User
    November 21, 2025

    Please show your code.

    How to insert source code

    Super User
    November 21, 2025

    For a Full duplex master you should always use TransmitReceive , as the SPI shifts out and in same time.

    or with dma:   HAL_SPI_TransmitReceive_DMA( ..)

    (only receive on full duplex is like : receive and dont care about transmit... :)

    It might send anything, maybe the remains from last receive, as you write nothing to send.)

    Explorer
    November 21, 2025

    MOSI is "Master Out Slave In".
    What you see on this line is what was written by your code to the SPI Tx register beforehand.