cancel
Showing results for 
Search instead for 
Did you mean: 

Data Collision between USART and SPI.

DAvra
Associate II

I my project I use UART 1 and 2 and SPI 1 and 2.

When I send data via UART 1 using the function "HAL_UART_Transmit_IT (....)" and the second line in code I use the function "HAL_SPI_Transmit (....)" the data received from the UART 1 is incorrect, the head of message is Ok but the rest looks like garbage.

Looks is a collision between USART and SPI.

Regards,

Didi Avram

2 REPLIES 2

Hardware problem (short, ground problem)?

Observe data lines using oscilloscope or logic analyzer.

JW

Don't use blocking functions in IRQ Handlers or callbacks​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..