Charley468
Member
I purchased a new laptop, loaded the latest Arduino IDE (1.8.12) then loaded the latest teensyduino ( 1.52) and then I load from the examples Cardinfo and when I attempt to compile it, it reports that it cannot find the correct library. This is the errors listed in the debug:
In file included from C:\Users\13196\AppData\Local\Temp\arduino_modified_sketch_278225\CardInfo.ino:23:0:
C:\Users\13196\Documents\Arduino\libraries\SPI\src/SPI.h: In static member function 'static void SPIClass::beginTransaction(SPISettings)':
C:\Users\13196\Documents\Arduino\libraries\SPI\src/SPI.h:180:22: error: 'SREG' was not declared in this scope
uint8_t sreg = SREG;
^
C:\Users\13196\Documents\Arduino\libraries\SPI\src/SPI.h: In static member function 'static void SPIClass::endTransaction()':
C:\Users\13196\Documents\Arduino\libraries\SPI\src/SPI.h:336:9: error: 'SREG' was not declared in this scope
Multiple libraries were found for "SPI.h"
SREG = interruptSave;
Used: C:\Users\13196\Documents\Arduino\libraries\SPI
^
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SPI[/B]
C:\Users\13196\AppData\Local\Temp\arduino_modified_sketch_278225\CardInfo.ino: At global scope:
Multiple libraries were found for "SD.h"
CardInfo:36: error: 'BUILTIN_SDCARD' was not declared in this scope
Used: C:\Users\13196\Documents\Arduino\libraries\SD
const int chipSelect = BUILTIN_SDCARD;
Not used: C:\Program Files (x86)\Arduino\libraries\SD
^
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD
'BUILTIN_SDCARD' was not declared in this scope
====
if I switch to the T3.6, and remove the "BUILTIN_SDCARD" (change it to 4) it compiles without errors
If I leave the "BUILTIN_SDCARD" in I get these errors when compiling to the T3.6:
CardInfo:36: error: 'BUILTIN_SDCARD' was not declared in this scope
const int chipSelect = BUILTIN_SDCARD;
^
Multiple libraries were found for "SPI.h"
Used: C:\Users\13196\Documents\Arduino\libraries\SPI
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SPI
Multiple libraries were found for "SD.h"
Used: C:\Users\13196\Documents\Arduino\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD
'BUILTIN_SDCARD' was not declared in this scope
====
on the older (Win8) machine I do not have any errors on compile on either the T3.6 or the T4.1
It appears that when Teensyduino is installed it is suppose to change what "SD.h" file is pointed to and for some reason it did not in this case?
I uninstalled both the Arduino IDE and Teensyduino and rebooted and reinstalled - no joy - same results
Can anybody make a suggestion?
Thank you
Charley
In file included from C:\Users\13196\AppData\Local\Temp\arduino_modified_sketch_278225\CardInfo.ino:23:0:
C:\Users\13196\Documents\Arduino\libraries\SPI\src/SPI.h: In static member function 'static void SPIClass::beginTransaction(SPISettings)':
C:\Users\13196\Documents\Arduino\libraries\SPI\src/SPI.h:180:22: error: 'SREG' was not declared in this scope
uint8_t sreg = SREG;
^
C:\Users\13196\Documents\Arduino\libraries\SPI\src/SPI.h: In static member function 'static void SPIClass::endTransaction()':
C:\Users\13196\Documents\Arduino\libraries\SPI\src/SPI.h:336:9: error: 'SREG' was not declared in this scope
Multiple libraries were found for "SPI.h"
SREG = interruptSave;
Used: C:\Users\13196\Documents\Arduino\libraries\SPI
^
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SPI[/B]
C:\Users\13196\AppData\Local\Temp\arduino_modified_sketch_278225\CardInfo.ino: At global scope:
Multiple libraries were found for "SD.h"
CardInfo:36: error: 'BUILTIN_SDCARD' was not declared in this scope
Used: C:\Users\13196\Documents\Arduino\libraries\SD
const int chipSelect = BUILTIN_SDCARD;
Not used: C:\Program Files (x86)\Arduino\libraries\SD
^
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD
'BUILTIN_SDCARD' was not declared in this scope
====
if I switch to the T3.6, and remove the "BUILTIN_SDCARD" (change it to 4) it compiles without errors
If I leave the "BUILTIN_SDCARD" in I get these errors when compiling to the T3.6:
CardInfo:36: error: 'BUILTIN_SDCARD' was not declared in this scope
const int chipSelect = BUILTIN_SDCARD;
^
Multiple libraries were found for "SPI.h"
Used: C:\Users\13196\Documents\Arduino\libraries\SPI
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SPI
Multiple libraries were found for "SD.h"
Used: C:\Users\13196\Documents\Arduino\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD
'BUILTIN_SDCARD' was not declared in this scope
====
on the older (Win8) machine I do not have any errors on compile on either the T3.6 or the T4.1
It appears that when Teensyduino is installed it is suppose to change what "SD.h" file is pointed to and for some reason it did not in this case?
I uninstalled both the Arduino IDE and Teensyduino and rebooted and reinstalled - no joy - same results
Can anybody make a suggestion?
Thank you
Charley