STM32 SPI master and slave issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-02 3:59 AM
Hello everyone.
I am working on a project and I have two stm32 MCU connected over SPI interface. One acting as a master (STM32H743VIT6) and the second acting as a slave (STM32C011U6) in full duplex.
When sending data between the two devices the received data are sometimes correct and sometimes wrong.
The slave is using DMA in circular mode to receive the master data. Once received it sends back and array of 3 bytes [24, 15, 64];
Sometimes the master reading is correct and sometimes it is wrong. Here is a capture of the received data.
If anyone has already face similar issue.
Thanks . Hope to find some solutions.
- Labels:
-
DMA
-
SPI
-
STM32C0 Series
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-02 4:18 AM
Connect analyzer or .... how speed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-02 6:36 AM
Thanks for your quick response.
The running speed is 750Mbit/s.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-02 6:43 AM
750 seems as mission impossible on C011 ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-02 6:50 AM
Sorry it is 750kbis/s
Right now I don't have logic analyzer but I will do some probing later.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-02 7:31 PM
Hi,
Are they connected via a cable? If so, how long are the cables between them?
Kind regards
Pedro
