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.

1 view (last 30 days)
  1 Comment
Walter Roberson
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

Sign in to comment.

Answers (3)

Takuya Otani
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.

Suguna Thanagasundram
Suguna Thanagasundram on 28 Jun 2016
did anybody have the solution to this problem?

Eric Hon
Eric Hon on 30 Jul 2016
I also have the same problem, help would be much appreciated?


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!