Please someone tell me what this means. I can not get the SPI channels enabled on my Raspberry Pi 2 model B. I am attaching the error message below.
3 views (last 30 days)
Show older comments
1 Comment
Walter Roberson
on 28 Jun 2016
MATLAB is looking on the Raspberry for a device of type spi_bcm2708 but cannot find one.
It appears there are some steps you need to take to enable the device. See https://www.raspberrypi.org/forums/viewtopic.php?f=100&t=103620
Answers (3)
Takuya Otani
on 5 Sep 2016
Edited: Takuya Otani
on 5 Sep 2016
This is caused by the latest release of Linux image, not enabling SPI by default. To change the settings, follow below procedure.
In MATLAB, type following command. (Assuming Raspberry Pi is configured to run with MATLAB with necessary support packages installed)
>> mypi = raspi;
>> openShell(mypi)
You should now see terminal opened and logged into Linux console
Type following command to open up Raspberry Pi configuration window
$ sudo raspi-config
Goto "Advanced Options", and choose "SPI (Enable/Disable automatic loading) enable the settings, and exit the configuration window.
Reboot raspberry pi, and you should be set to go now, when it is rebooted.
Takuya
0 Comments
See Also
Categories
Find more on MATLAB Support Package for Raspberry Pi Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!