Skip to main content
Associate
September 6, 2023
Solved

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

  • September 6, 2023
  • 2 replies
  • 2117 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 !

2 replies

AScha.3
AScha.3Best answer
Super User
September 6, 2023

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

If you feel a post has answered your question, please click on " Best Answer ".
TungAuthor
Associate
September 7, 2023

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