2020-02-13 10:16 AM
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
2020-02-13 12:29 PM
Hardware problem (short, ground problem)?
Observe data lines using oscilloscope or logic analyzer.
JW
2020-02-13 02:18 PM
Don't use blocking functions in IRQ Handlers or callbacks