Pages: [1]   Go Down
 Author Topic: More 1.5.3 fun...  (Read 977 times) 0 Members and 1 Guest are viewing this topic.
Offline
Newbie
Karma: 0
Posts: 37
 « on: September 10, 2013, 12:01:35 pm » Bigger Smaller Reset

I have renamed all the library.properties files to get my libraries added but now I have a different issue...

Arduino: 1.5.3 (Windows 7), Board: "Arduino Due (Programming Port)"

In file included from C:\Program Files (x86)\Arduino\libraries\SD/utility/Sd2Card.h:26,
from C:\Program Files (x86)\Arduino\libraries\SD/utility/SdFat.h:27,
from C:\Program Files (x86)\Arduino\libraries\SD/SD.h:20,
from Revision_2_3BETA.ino:2:
C:\Program Files (x86)\Arduino\libraries\SD/utility/Sd2PinMap.h:23: fatal error: avr/io.h: No such file or directory
compilation terminated.

Line 23 in Sd2PinMap.h says: "#include <avr/io.h>"

The file is located in: C:\Program Files (x86)\Arduino\hardware\tools\avr\avr\include\avr

Why can't it find this file? Do I need to copy it into a different directory?

 Logged

Earth
Offline
Sr. Member
Karma: 14
Posts: 331
Arduino rocks
 « Reply #1 on: September 10, 2013, 03:14:33 pm » Bigger Smaller Reset

This sort of question seems to come up a lot.

You cannot use AVR system headers in your ARM Cortex code. The Due is a totally different processor architecture. It has nothing to do with AVR at all. If you want to use libraries that make direct reference to AVR libraries and/or headers then you will have to rewrite the library to work around this.
 Logged

Nashville Tennessee, USA
Offline
Sr. Member
Karma: 15
Posts: 367
 « Reply #2 on: September 10, 2013, 07:48:37 pm » Bigger Smaller Reset

Are you sure you are in the 1.5.3 libraries?

My copy of Sd2PinMap.h has this include on line 39 and it is only used when compiling for an AVR based arduino.

Code:
#elif defined(__AVR__) // Other AVR based Boards follows

// Warning this file was generated by a program.
#ifndef Sd2PinMap_h
#define Sd2PinMap_h
#include <avr/io.h>
 Logged

Offline
Newbie
Karma: 0
Posts: 37
 « Reply #3 on: September 11, 2013, 09:23:39 am » Bigger Smaller Reset

I know the Due is a sam, I had it selected but got that message still; which confused me. I did manage to get 1.5.3 working and 1.5.4 working but my sketch didn't run on either of them or even the nightly build. Went back to 1.5.2 and it's running flawlessly. I think ill just wait out a few versions...
 Logged

Milano, Italy
Offline
Sr. Member
Karma: 23
Posts: 292
 « Reply #4 on: September 11, 2013, 09:41:03 am » Bigger Smaller Reset

Stu1987

can you send me your sketch for testing?
 Logged

C.

 Pages: [1]   Go Up