
<tek00006.png>
--
You received this message because you are subscribed to the Google Groups "bcm2835" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcm2835+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bcm2835/b1136916-afb7-4bc5-b6cd-a9f56e03ff22%40googlegroups.com.
<tek00006.png>
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.8 (stretch)
Release: 9.8
Codename: stretch


--
You received this message because you are subscribed to the Google Groups "bcm2835" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcm2835+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bcm2835/53a0c22c-489d-4dc5-b0dc-2024e23b846a%40googlegroups.com.
Hi Tobias,The 50Mhz is pretty high on the limitation. Moreover, this library is not formally released for the Rasperry Pi Model 4.I do not have a Model 4 (won’t never buy it), but I can give this 50MHz a try on a Model 3B+ board with Stretch.Meanwhile, please also try 10MHz, 20MHz and 30MHz clock spseed for the SPI.- Arjan
Op 19 jul. 2019, om 22:37 heeft Tobias Spitzbart <tobias....@gmail.com> het volgende geschreven:
Hi Arjan,thanks for your replay.I testet it with the RPI4 and Debain Buster.My SPI clock was 50MHz. Can you maybe test your system mit a clock speed from 50Mhz?Greetings Tobias--
You received this message because you are subscribed to the Google Groups "bcm2835" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcm...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "bcm2835" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcm2835+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bcm2835/02830b7d-78f3-4b75-8ad3-708e903a8f5b%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "bcm2835" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcm2835+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bcm2835/02830b7d-78f3-4b75-8ad3-708e903a8f5b%40googlegroups.com.
Hi Tobias,My apologize; it is still on my list to give it a test. Also with bare metal - no Linux. However, I could imagine that it does not make any difference. This library does not use any Linux drivers. Hence it would be something with the SoC itself.- Arjan
Op 27 aug. 2019, om 12:26 heeft Tobias Spitzbart <tobias....@gmail.com> het volgende geschreven:
Hello,
I tested it with the same setup with a raspberry pi 3+.
The problem is similar.
Above 15 MHz there is a gab between two 64Byte Blocks.
I tried to use the Real-time Kernel Patch. But that makes the things worse.Have anyone have a Idea. Or is the SPI limited around 3MB/s?
Greetings Tobias--
You received this message because you are subscribed to the Google Groups "bcm2835" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcm...@googlegroups.com.
Op 30 aug. 2019, om 14:40 heeft Tobias Spitzbart <tobias.s...@gmail.com> het volgende geschreven:Hi Arjan,
thanks for your answer.
It is a shame that there is no Datasheet from the SoC.
Maybe the SPI-Controller in the SOC has a 64Byte buffer and when it is empty the next 64Bytes a load into the Buffer...
But without a Datasheet it is only speculation
Greetings TobiasAm Freitag, 30. August 2019 09:49:38 UTC+2 schrieb Arjan van Vught:Hi Tobias,My apologize; it is still on my list to give it a test. Also with bare metal - no Linux. However, I could imagine that it does not make any difference. This library does not use any Linux drivers. Hence it would be something with the SoC itself.- Arjanhttps://github.com/vanvught/rpidmx512Op 27 aug. 2019, om 12:26 heeft Tobias Spitzbart <tobias....@gmail.com> het volgende geschreven:Hello,
I tested it with the same setup with a raspberry pi 3+.
The problem is similar.
Above 15 MHz there is a gab between two 64Byte Blocks.
I tried to use the Real-time Kernel Patch. But that makes the things worse.Have anyone have a Idea. Or is the SPI limited around 3MB/s?
Greetings Tobias--
You received this message because you are subscribed to the Google Groups "bcm2835" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bcm2835/02830b7d-78f3-4b75-8ad3-708e903a8f5b%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "bcm2835" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcm2835+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bcm2835/3e0f529b-c54d-4864-a37e-f6699a0c9057%40googlegroups.com.
Op 30 aug. 2019, om 14:58 heeft Tobias Spitzbart <tobias.s...@gmail.com> het volgende geschreven:In the Version history I found this point:
1.28 Fixed a problem where bcm2835_spi_writenb() would have problems with transfers of more than 64 bytes dues to read buffer filling. Patched by Peter Würtz.
There could be an issue that the FIFO is not filled quickly enough. That’s why I am eager to give it a test on baremetal.
Maybe that is similar to my problem…
Greetings Tobias--
You received this message because you are subscribed to the Google Groups "bcm2835" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcm2835+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bcm2835/b5112dc1-df79-4e7f-98d0-e55f6db6268a%40googlegroups.com.
<tek00006.png>
--
You received this message because you are subscribed to the Google Groups "bcm2835" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcm2835+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bcm2835/b1136916-afb7-4bc5-b6cd-a9f56e03ff22%40googlegroups.com.
<tek00006.png>
Op 19 jul. 2019, om 20:09 heeft Tobias Spitzbart <tobias....@gmail.com> het volgende geschreven:
Hi,I try a SPI connection between RPi and FPGA.I use the function: bcm2835_spi_transfernWhen I try to send more then 64 Bytes there is a big delay.For e.g. I try to send 256 bytes.On the pic you can see the first 64 bytes then a delay from about 24us then the secound 64 bytes an so on.Is the function or the DMA limit to 64 bytes?Thanks for you helpGreetings Tobias<tek00006.png>
--
You received this message because you are subscribed to the Google Groups "bcm2835" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcm...@googlegroups.com.

To unsubscribe from this group and stop receiving emails from it, send an email to bcm2835+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bcm2835/1a2da386-e3e1-4129-91d4-c9e490173389%40googlegroups.com.
Hi Tobias,
Python is an interpreter language, therefore it is not the best choice when performance is expected.What I see when using bcm2835_spi_transfern running without Linux, there are no gaps. This tells me that Linux, with its (many) interrupts, is not doing well for high SPI clock speeds. And that there is no bug in bcm2835_spi_transfern.A good test would be writing a user-space DMA SPI solution with this library -> porting this https://github.com/rsta2/circle/blob/master/lib/spimasterdma.cpp to user-space.- Arjan
To view this discussion on the web visit https://groups.google.com/d/msgid/bcm2835/1a2da386-e3e1-4129-91d4-c9e490173389%40googlegroups.com.