TinyCircuits Forum
TinyCircuits Products => TinyDuino Processors & TinyShields => Topic started by: gadallon on June 23, 2018, 03:15:57 PM
-
We are trying this example of GSP tracker: https://tinycircuits.com/blogs/learn/tinyduino-gps-tracker-data-logger-tutorial
We assembled everything and when we try to upload the code, we get the following error message (which I trimmed for space considerations)
Arduino: 1.8.5 (Mac OS X), Board: "Arduino/Genuino Uno"
Build options changed, rebuilding all
In file included from /Users/gadallon/Documents/Arduino/libraries/SPIMemory/src/SPIMemory.h:76:0,
from /Users/gadallon/Downloads/TinyCircuits-GPS-Tracker-Tutorial-master/GPS_Tracker/GPS_Tracker.ino:3:
/Users/gadallon/Documents/Arduino/libraries/SPIMemory/src/SPIFlash.h:33:7: error: redefinition of 'class SPIFlash'
class SPIFlash {
^
...
GPS_Tracker:75: error: 'class SPIFlash' has no member named 'readByteArray'
flash.readByteArray(address, flashBuffer, 256);
exit status 1
'class SPIFlash' has no member named 'begin'
********
Anyone has any experience with it? is it possible that it's related to the changes in SPIFlash and SPImemory?
-
It may be possible that some include guards are missing! https://stackoverflow.com/questions/13060699/arduino-class-redefinition-error
Try adding something like this to the file producing the error:
#ifndef SPIFLASH_H
#define SPIFLASH_H
...
#endif