Hi Paul,
Thanks for the quick reply.
I am aware of this change, as the class is named SPIClass rather than SPI. However it is clearly stated that the SPI to be used with the HOST SHIELD is from the playground or arduino 18 or earlier.
(i am using the playground SPI package)
I have not tried to use the Java based IDE provided by Arduino.cc because I am not sure how to specify the include directories...etc.
I can give it a shot but do you have any useful links on how to place the files (file/folder structure) as well as the Playground SPI to make it compile/link against it?
here is the build log from the AVR Project IDE:
Build Failed with 0 errors
Deleted: 'Max3421e.o', 'Usb.o', 'HardwareSerial.o', 'pins_arduino.o', 'Print.o', 'Tone.o', 'WInterrupts.o', 'wiring.o', 'wiring_analog.o', 'wiring_digital.o', 'wiring_pulse.o', 'wiring_shift.o', 'WMath.o', 'WString.o', 'SPI.o', 'arduino_temp_main.o', 'libDescriptorTest.a', 'Max3421e.d', 'Usb.d', 'HardwareSerial.d', 'pins_arduino.d', 'Print.d', 'Tone.d', 'WInterrupts.d', 'wiring.d', 'wiring_analog.d', 'wiring_digital.d', 'wiring_pulse.d', 'wiring_shift.d', 'WMath.d', 'WString.d', 'SPI.d', 'arduino_temp_main.d',
Deleting: Max3421e.o Usb.o HardwareSerial.o pins_arduino.o Print.o Tone.o WInterrupts.o wiring.o wiring_analog.o wiring_digital.o wiring_pulse.o wiring_shift.o WMath.o WString.o SPI.o arduino_temp_main.o libDescriptorTest.a Max3421e.d Usb.d HardwareSerial.d pins_arduino.d Print.d Tone.d WInterrupts.d wiring.d wiring_analog.d wiring_digital.d wiring_pulse.d wiring_shift.d WMath.d WString.d SPI.d arduino_temp_main.d libDescriptorTest.a
####Error: ELF file not created at C:\Users\MyUserName\Documents\Projects\DescriptorTest\output\DescriptorTest.elf
Execute: avr-gcc -mmcu=atmega328p -Wl,-Map=DescriptorTest.map -Wl,--gc-sections -Os libDescriptorTest.a Max3421e.o Usb.o HardwareSerial.o pins_arduino.o Print.o Tone.o WInterrupts.o wiring.o wiring_analog.o wiring_digital.o wiring_pulse.o wiring_shift.o WMath.o WString.o SPI.o arduino_temp_main.o -lm -lc -o DescriptorTest.elf
Execute: avr-ar rcs libDescriptorTest.a Max3421e.o Usb.o HardwareSerial.o pins_arduino.o Print.o Tone.o WInterrupts.o wiring.o wiring_analog.o wiring_digital.o wiring_pulse.o wiring_shift.o WMath.o WString.o SPI.o
cc1plus.exe: warning: command line option "-std=c99" is valid for C/ObjC but not for C++
Execute: avr-g++ -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\libraries\SPI_Old" -I"C:\Users\MyUserName\Documents\Projects\DescriptorTest" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -mmcu=atmega328p -DF_CPU=16000000UL -Os -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections -Wall -gdwarf-2 -MD -MP -MT arduino_temp_main.o -c -std=c99 "C:/Users/MyUserName/AppData/Roaming/AVRProjectIDE/temp/arduino_temp_main.cpp"
cc1plus.exe: warning: command line option "-std=c99" is valid for C/ObjC but not for C++
Execute: avr-g++ -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\libraries\SPI_Old" -I"C:\Users\MyUserName\Documents\Projects\DescriptorTest" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -mmcu=atmega328p -DF_CPU=16000000UL -Os -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections -Wall -gdwarf-2 -MD -MP -MT SPI.o -c -std=c99 "C:/Users/MyUserName/AppData/Roaming/AVRProjectIDE/temp/SPI.cpp"
cc1plus.exe: warning: command line option "-std=c99" is valid for C/ObjC but not for C++
Execute: avr-g++ -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\libraries\SPI_Old" -I"C:\Users\MyUserName\Documents\Projects\DescriptorTest" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -mmcu=atmega328p -DF_CPU=16000000UL -Os -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections -Wall -gdwarf-2 -MD -MP -MT WString.o -c -std=c99 "C:/Users/MyUserName/AppData/Roaming/AVRProjectIDE/temp/WString.cpp"
cc1plus.exe: warning: command line option "-std=c99" is valid for C/ObjC but not for C++
Execute: avr-g++ -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\libraries\SPI_Old" -I"C:\Users\MyUserName\Documents\Projects\DescriptorTest" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -mmcu=atmega328p -DF_CPU=16000000UL -Os -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections -Wall -gdwarf-2 -MD -MP -MT WMath.o -c -std=c99 "C:/Users/MyUserName/AppData/Roaming/AVRProjectIDE/temp/WMath.cpp"
Execute: avr-gcc -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\libraries\SPI_Old" -I"C:\Users\MyUserName\Documents\Projects\DescriptorTest" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -mmcu=atmega328p -DF_CPU=16000000UL -Os -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections -Wall -gdwarf-2 -MD -MP -MT wiring_shift.o -c -std=gnu99 "C:/Users/MyUserName/AppData/Roaming/AVRProjectIDE/temp/wiring_shift.c"
Execute: avr-gcc -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\libraries\SPI_Old" -I"C:\Users\MyUserName\Documents\Projects\DescriptorTest" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -mmcu=atmega328p -DF_CPU=16000000UL -Os -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections -Wall -gdwarf-2 -MD -MP -MT wiring_pulse.o -c -std=gnu99 "C:/Users/MyUserName/AppData/Roaming/AVRProjectIDE/temp/wiring_pulse.c"
Execute: avr-gcc -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\libraries\SPI_Old" -I"C:\Users\MyUserName\Documents\Projects\DescriptorTest" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -mmcu=atmega328p -DF_CPU=16000000UL -Os -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections -Wall -gdwarf-2 -MD -MP -MT wiring_digital.o -c -std=gnu99 "C:/Users/MyUserName/AppData/Roaming/AVRProjectIDE/temp/wiring_digital.c"
Execute: avr-gcc -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\libraries\SPI_Old" -I"C:\Users\MyUserName\Documents\Projects\DescriptorTest" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -mmcu=atmega328p -DF_CPU=16000000UL -Os -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections -Wall -gdwarf-2 -MD -MP -MT wiring_analog.o -c -std=gnu99 "C:/Users/MyUserName/AppData/Roaming/AVRProjectIDE/temp/wiring_analog.c"
Execute: avr-gcc -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\libraries\SPI_Old" -I"C:\Users\MyUserName\Documents\Projects\DescriptorTest" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -mmcu=atmega328p -DF_CPU=16000000UL -Os -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections -Wall -gdwarf-2 -MD -MP -MT wiring.o -c -std=gnu99 "C:/Users/MyUserName/AppData/Roaming/AVRProjectIDE/temp/wiring.c"
Execute: avr-gcc -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\libraries\SPI_Old" -I"C:\Users\MyUserName\Documents\Projects\DescriptorTest" -I"C:\Program Files (x86)\AVRProjectIDE\arduino\core" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\MyUserName\AppData\Roaming\AVRProjectIDE\temp" -mmcu=atmega328p -DF_CPU=16000000UL -Os -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections -Wall -gdwarf-2 -MD -MP -MT WInterrupts.o -c -std=gnu99 "C:/Users/MyUserName/AppData/Roaming/AVRProjectIDE/temp/WInterrupts.c"
cc1plus.exe: warning: command line option "-std=c99" is valid for C/ObjC but not for C++