Skip to main content
Associate
Sep 6, 2023 10:31 AM UTC
Solved

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

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.
AScha.3
AScha.3Best answer
Super User
Sep 6, 2023 10:37 AM UTC

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

If you feel a post has answered your question, please click on " Best Answer ".

2 replies

AScha.3
AScha.3Best answer
Super User
Sep 6, 2023 10:37 AM UTC

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

If you feel a post has answered your question, please click on " Best Answer ".
TungAuthor
Associate
Sep 7, 2023 3:30 AM UTC

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