Data Collision between USART and SPI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Labels:
-
SPI
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-13 12:29 PM
Hardware problem (short, ground problem)?
Observe data lines using oscilloscope or logic analyzer.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-13 2:18 PM
Don't use blocking functions in IRQ Handlers or callbacks​
Up vote any posts that you find helpful, it shows what's working..
