Author Topic: fatal error: SPI.h: No such file or directory.  (Read 17573 times)

temmink

  • Newbie
  • *
  • Posts: 22
fatal error: SPI.h: No such file or directory.
« on: November 30, 2013, 09:27:25 am »
This is a little strange.

When I select the Arduino Due in the Arduino 1.5.5 IDE, the sketch compiles fine and uploads to the digix without problems. (just no serial), and can't debug the sketch (it needs serial).

When I select the in the Arduino IDE the digistump Digix board and compiles the sketch, it gives me an error:

sketch_nov30a.ino:15: fatal error: SPI.h: No such file or directory
compilation terminated.

Is a little strange, or I'm doing some stupid?

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: fatal error: SPI.h: No such file or directory.
« Reply #1 on: December 01, 2013, 02:54:45 am »
Can you share your sketch?

Does something like the Examples->SD->Card Info sketch compile?

And just to check - is your SPI line:

#include <SPI.h>

or

#include "SPI.h"

the top being correct

temmink

  • Newbie
  • *
  • Posts: 22
Re: fatal error: SPI.h: No such file or directory.
« Reply #2 on: December 01, 2013, 02:49:59 pm »
I had to copy the SPI library to the digiX folder in the arduini IDE. After that He compiled just fine.

so basically to:

hardware/digistump.sam/libraries/spi

Is that normal?

BTW i'm on a mac.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: fatal error: SPI.h: No such file or directory.
« Reply #3 on: December 02, 2013, 03:07:22 am »
This was caused by a change Arduino made from 1.5.4 to 1.5.5 - the DigiX addons have been updated for compatibility: https://sourceforge.net/projects/digistump/files/DigiXAddons-v05.zip/download

temmink

  • Newbie
  • *
  • Posts: 22
Re: fatal error: SPI.h: No such file or directory.
« Reply #4 on: December 02, 2013, 06:38:21 am »
ah, I will update the add-ons.

Thnks!

temmink

  • Newbie
  • *
  • Posts: 22
Re: fatal error: SPI.h: No such file or directory.
« Reply #5 on: December 02, 2013, 01:57:03 pm »
Yep, updating to the new addons-v5 solved the problem.

thnks!

sparkyichi

  • Newbie
  • *
  • Posts: 11
Re: fatal error: SPI.h: No such file or directory.
« Reply #6 on: December 07, 2013, 02:14:23 pm »
Had the same issue with my install on 1.5.5 as well, but it worked upon re-install.

Sparky