Skip to main content
Explorer
September 6, 2023
Solved

An extra SPI clock between consecutive calls to the SPI transmission function.

  • September 6, 2023
  • 1 reply
  • 1452 views

Hi everyone,

I am using SPI1 on the STM32U575 to transmit data, and my issue is that between consecutive calls to the SPI transmission function, there is an extra long clock pulse instead of no clock pulse at all.

image_1.png

 This is my first time using the STM32U575, so I hope someone can help me resolve this issue.

Below is the code and configuration:

HAL_SPI_Transmit(&hspi1, tx_buf_1, 5, 200); // Byte 0 - 4
HAL_SPI_Transmit(&hspi1, tx_buf_2, 2, 200); // Byte 5 - 6
image_2.png

 Thanks.

 

    This topic has been closed for replies.
    Best answer by AScha.3

    try : in Cube -> master keep io state -> enable !

    1 reply

    AScha.3Answer
    Super User
    September 6, 2023

    try : in Cube -> master keep io state -> enable !

    TungAuthor
    Explorer
    September 7, 2023

    I have tested my software again with your response, and it is working. Thank you for your feedback.