cancel
Showing results for 
Search instead for 
Did you mean: 

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

Tung
Associate

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
AScha.3
Chief II

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

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
AScha.3
Chief II

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

If you feel a post has answered your question, please click "Accept as Solution".

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