Multiple Slaves Connected to SPI3 in master mode, Fails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-27 10:02 PM
Hi,
We designed stm32f7 based custom board and it consist 3 slave devices (FPGA) connected to SPI3 in master mode. when three slaves connected simultaneously & try to access one by one, first two slaves are able to read/write & 3rd slave fail to access (read/write)
But if i connect one by one device to SPI at a time, it works as expected without any errors.
Is there any know issue/bug with SPI3, when we interface more than two slaves ?
Solved! Go to Solution.
- Labels:
-
SPI
-
STM32F4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-19 7:17 PM
Sorry for the late response,
We found the issue, the root cause is after programming each FPGA, it will pull the MOSI line to Low. After 2 FPGA program, the pull is very strong and not allowing to program 3 FPGA
We corrected in FPGA, Now no pull in FPGA and able to program all three and as well communicate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-28 12:17 AM
No.
The SPI controller neither knows nor cares how many slaves are there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-28 1:24 AM
Then can you hint, what could be causing issue ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-28 1:45 AM
Your question is a bit sparse on implementation detail. Present better.
I'd guess the slaves aren't tristating​ the output properly, the load is too high, or some other issue with clock or data lines and timing. Look at selects and data/clocks on a logic analyser to better understand the mode of failure / "not working".
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-28 3:38 AM
Thanks for response,
We probe in the scope and found that, when try to access third slave, there is no SPI clock output from STM, we still investigating... what will makes clock to stop ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-28 4:02 AM
> what will makes clock to stop?
Misconfigured SPI or GPIO
Read out SPI and GPIO registers content and check/compare to working case.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-28 4:22 AM
Or no data written into the data register
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-19 7:17 PM
Sorry for the late response,
We found the issue, the root cause is after programming each FPGA, it will pull the MOSI line to Low. After 2 FPGA program, the pull is very strong and not allowing to program 3 FPGA
We corrected in FPGA, Now no pull in FPGA and able to program all three and as well communicate
