<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Raspberry Pi: Enable the SPI device</title>
	<atom:link href="http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/feed/" rel="self" type="application/rss+xml" />
	<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/</link>
	<description>are you still afraid?</description>
	<lastBuildDate>Mon, 08 Jul 2019 19:58:13 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>By: shenenyu</title>
		<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/#comment-5053</link>
		<dc:creator><![CDATA[shenenyu]]></dc:creator>
		<pubDate>Sat, 26 Dec 2015 09:14:20 +0000</pubDate>
		<guid isPermaLink="false">http://neophob.com/?p=1885#comment-5053</guid>
		<description><![CDATA[hello,After shorting the pins, I get the following output;

$ sudo ./spidev_test -D /dev/spidev0.0
spi mode: 0
bits per word: 8
max speed: 10000000 Hz (10000 KHz)
00000
00000
00000
my raspbeerypi type is 2b]]></description>
		<content:encoded><![CDATA[
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 50
]]></content:encoded>
	</item>
	<item>
		<title>By: No3x</title>
		<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/#comment-4809</link>
		<dc:creator><![CDATA[No3x]]></dc:creator>
		<pubDate>Wed, 21 Oct 2015 11:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://neophob.com/?p=1885#comment-4809</guid>
		<description><![CDATA[If you use raspbian and/or have raspi-config tool available on your platform: 
You can enable SPI via 
sudo raspi-config
-&gt; Advanced -&gt; SPI -&gt; Enable, and choose load at startup.]]></description>
		<content:encoded><![CDATA[
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 50
]]></content:encoded>
	</item>
	<item>
		<title>By: bacha</title>
		<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/#comment-4208</link>
		<dc:creator><![CDATA[bacha]]></dc:creator>
		<pubDate>Thu, 28 May 2015 23:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://neophob.com/?p=1885#comment-4208</guid>
		<description><![CDATA[FYI

With MISO and MOSI shortened, I was able to get reliable tests between 3,815 and 62,499,999 Hz.

Speeds equal to or above 62.5 MHz consistently gave this output:

7F 7F 7F 7F 7F 7F
20 00 00 00 00 4A
7F 7F 7F 7F 7F 7F
7F 7F 7F 7F 7F 7F
7F 7F 7F 7F 7F 7F
6F 56 5F 77 5D 56
78 06

The sweet spot of 62.5 MHz can be traced to the BCM2835 ARM Peripherals documentation (https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2835/BCM2835-ARM-Peripherals.pdf footnote 5, page 20) which states the SPI clock runs (by default at max speed) at 125 MHz, which is the exact double of 62.5 MHz.

Why it&#039;s &quot;only&quot; capable of running at half the speed of the 125 MHz I do not understand.
My initial thought was it must because it&#039;s doing both the reading and the writing, but SPI is full duplex.
Maybe some bright fellow could help shedding some light on this? :)]]></description>
		<content:encoded><![CDATA[
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 50
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Boardman (@uxrick)</title>
		<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/#comment-3811</link>
		<dc:creator><![CDATA[Richard Boardman (@uxrick)]]></dc:creator>
		<pubDate>Sat, 14 Feb 2015 22:54:55 +0000</pubDate>
		<guid isPermaLink="false">http://neophob.com/?p=1885#comment-3811</guid>
		<description><![CDATA[I came across this post looking for a fix to RPI problems with the more recent kernel upgrade (3.18)

There is one other step to the above that you need to do:

Add “dtparam=spi=on” to your /boot/config.txt and reboot.

https://raspberrypi.stackexchange.com/questions/27073/firmware-3-18-x-breaks-i2c-spi-audio-lirc-1-wire-e-g-dev-i2c-1-no-such-f?newreg=d5f1e383852548aa9ec8158b694371f9
http://www.raspberrypi.org/forums/viewtopic.php?p=675658#p675658]]></description>
		<content:encoded><![CDATA[
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 50
]]></content:encoded>
	</item>
	<item>
		<title>By: I2C Arduino and Raspberry pi using pi4j &#124; Dev Stuff</title>
		<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/#comment-3369</link>
		<dc:creator><![CDATA[I2C Arduino and Raspberry pi using pi4j &#124; Dev Stuff]]></dc:creator>
		<pubDate>Mon, 08 Dec 2014 16:44:22 +0000</pubDate>
		<guid isPermaLink="false">http://neophob.com/?p=1885#comment-3369</guid>
		<description><![CDATA[[&#8230;] http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/ [&#8230;]]]></description>
		<content:encoded><![CDATA[
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 50
]]></content:encoded>
	</item>
	<item>
		<title>By: Anteino</title>
		<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/#comment-3110</link>
		<dc:creator><![CDATA[Anteino]]></dc:creator>
		<pubDate>Sat, 08 Nov 2014 02:53:40 +0000</pubDate>
		<guid isPermaLink="false">http://neophob.com/?p=1885#comment-3110</guid>
		<description><![CDATA[Nevermind I found a version of spidev_test.c that matches my firmware:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/Documentation/spi/spidev_test.c?id=95b1ed2ac7ffe3205afc6f5a20320fbdb984da92]]></description>
		<content:encoded><![CDATA[
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 50
]]></content:encoded>
	</item>
	<item>
		<title>By: Anteino</title>
		<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/#comment-3109</link>
		<dc:creator><![CDATA[Anteino]]></dc:creator>
		<pubDate>Sat, 08 Nov 2014 02:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://neophob.com/?p=1885#comment-3109</guid>
		<description><![CDATA[When compiling the spidev_test.c it gives me a shitload of compile errors:

root@raspberrypi:/home/pi/LEDServer# gcc spidev_test.c -o spidev_test
spidev_test.c: In function âtransferâ:
spidev_test.c:60:13: error: âSPI_TX_QUADâ undeclared (first use in this function)
spidev_test.c:60:13: note: each undeclared identifier is reported only once for each function it appears in
spidev_test.c:61:5: error: âstruct spi_ioc_transferâ has no member named âtx_nbitsâ
spidev_test.c:62:18: error: âSPI_TX_DUALâ undeclared (first use in this function)
spidev_test.c:63:5: error: âstruct spi_ioc_transferâ has no member named âtx_nbitsâ
spidev_test.c:64:13: error: âSPI_RX_QUADâ undeclared (first use in this function)
spidev_test.c:65:5: error: âstruct spi_ioc_transferâ has no member named ârx_nbitsâ
spidev_test.c:66:18: error: âSPI_RX_DUALâ undeclared (first use in this function)
spidev_test.c:67:5: error: âstruct spi_ioc_transferâ has no member named ârx_nbitsâ
spidev_test.c: In function âparse_optsâ:
spidev_test.c:172:12: error: âSPI_TX_DUALâ undeclared (first use in this function)
spidev_test.c:175:12: error: âSPI_TX_QUADâ undeclared (first use in this function)
spidev_test.c:184:12: error: âSPI_RX_DUALâ undeclared (first use in this function)
spidev_test.c:186:12: error: âSPI_RX_QUADâ undeclared (first use in this function)
spidev_test.c: In function âmainâ:
spidev_test.c:204:18: error: âSPI_IOC_WR_MODE32â undeclared (first use in this function)
spidev_test.c:208:18: error: âSPI_IOC_RD_MODE32â undeclared (first use in this function)


I&#039;ve done everything exactly like you said except that I used the 2014-09-09-wheezy-raspbian.zip. And because the edge bleed kernel from Chris Boot was not available anymore I reverted to olf firmware with: sudo rpi-update 8234d5148aded657760e9ecd622f324d140ae891. Could you give me advise on this? It seems that no environmental variables are declared in the program/system, what can I do to solve this? Create them manually?]]></description>
		<content:encoded><![CDATA[
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 50
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Hodder</title>
		<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/#comment-2801</link>
		<dc:creator><![CDATA[Tom Hodder]]></dc:creator>
		<pubDate>Thu, 24 Jul 2014 14:18:31 +0000</pubDate>
		<guid isPermaLink="false">http://neophob.com/?p=1885#comment-2801</guid>
		<description><![CDATA[After shorting the pins, I get the following output;

$ sudo ./spidev_test 
spi mode: 0
bits per word: 8
max speed: 10000000 Hz (10000 KHz)

EE FF]]></description>
		<content:encoded><![CDATA[
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 50
]]></content:encoded>
	</item>
	<item>
		<title>By: michu</title>
		<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/#comment-1965</link>
		<dc:creator><![CDATA[michu]]></dc:creator>
		<pubDate>Wed, 08 May 2013 08:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://neophob.com/?p=1885#comment-1965</guid>
		<description><![CDATA[Thanks - what do you mean with &quot;this library&quot;?]]></description>
		<content:encoded><![CDATA[
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 50
]]></content:encoded>
	</item>
	<item>
		<title>By: yvesined</title>
		<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/#comment-1964</link>
		<dc:creator><![CDATA[yvesined]]></dc:creator>
		<pubDate>Wed, 08 May 2013 07:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://neophob.com/?p=1885#comment-1964</guid>
		<description><![CDATA[That was a quite awesome tutorial guys! Thank you. Is it possible to set digital GPIO Pins with this library (for example the CSN Pin that is recommened for SPI)?
Greets, yvesined.]]></description>
		<content:encoded><![CDATA[
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 50
]]></content:encoded>
	</item>
	<item>
		<title>By: TT</title>
		<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/#comment-1063</link>
		<dc:creator><![CDATA[TT]]></dc:creator>
		<pubDate>Wed, 16 Jan 2013 21:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://neophob.com/?p=1885#comment-1063</guid>
		<description><![CDATA[nevermind, i figured it out. thanks anyways :)]]></description>
		<content:encoded><![CDATA[
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 50
]]></content:encoded>
	</item>
	<item>
		<title>By: TT</title>
		<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/#comment-1060</link>
		<dc:creator><![CDATA[TT]]></dc:creator>
		<pubDate>Tue, 15 Jan 2013 15:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://neophob.com/?p=1885#comment-1060</guid>
		<description><![CDATA[I am pretty new to programming. I have a device which I want to connect to the RPi using SPI. I tried out the spi_devtest.c and it works. But the SPI frame of the slave device requires 24 bits. I have searched high and low and have not been able to find a solution. I tried changing the number of bits per word but that does not work. I wonder if I would have to just send 3 bytes instead of 24 bits. In that case, I don&#039;t know how to send 3 bytes without the chip select going inactive after each word. Any help would be greatly appreciated.]]></description>
		<content:encoded><![CDATA[
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 50
]]></content:encoded>
	</item>
	<item>
		<title>By: 趣味の電子工作 &#187; GPIO制御</title>
		<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/#comment-1012</link>
		<dc:creator><![CDATA[趣味の電子工作 &#187; GPIO制御]]></dc:creator>
		<pubDate>Sat, 05 Jan 2013 15:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://neophob.com/?p=1885#comment-1012</guid>
		<description><![CDATA[[...] Neophob　　SPI [...]]]></description>
		<content:encoded><![CDATA[
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 50
]]></content:encoded>
	</item>
	<item>
		<title>By: neophob.com &#187; PixelController and Raspberry Pi</title>
		<link>http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/#comment-847</link>
		<dc:creator><![CDATA[neophob.com &#187; PixelController and Raspberry Pi]]></dc:creator>
		<pubDate>Wed, 22 Aug 2012 21:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://neophob.com/?p=1885#comment-847</guid>
		<description><![CDATA[[...] I enabled the SPI device on my Rasp­berry PI, I wanted to drive some LED Mod­ules. Thanks to Scott Gib­son this was quite [...]]]></description>
		<content:encoded><![CDATA[
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/httpd/vhosts/pixelinvaders.ch/httpdocs/neophob.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 50
]]></content:encoded>
	</item>
</channel>
</rss>
