Hello all,
I am looking for help setting up a test for SPARKFUN #GPS-18037, that is supported by the library I installed as zip from
https://github.com/sparkfun/SparkFun_u-blox_GNSS_v3
I am using basic nmea example and trying to compile for an Uno selected, just compile, no GPS connected. I plan to use Pro Mini for 3v3 logic and size once working and SAM D21 long term, so all arduino and I generally find good compatibility between these controllers on I2C.
I use wire.h a lot and the new library looks like it is installed correctly. IDE restarted in case. See screenshot.
https://snipboard.io/OYvieR.jpgBelow is version with verbose output. Can anyone with more experience, see what I a missing to compile?
Thanks! Bw,
Ben
Detecting libraries used…
“C:\Users\bench\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard” “C:\Users\bench\AppData\Local\Temp\arduino\sketches\2F98111DFBA1E6C28904AC8DCA6A0C04\sketch\Example1_BasicNMEARead.ino.cpp” -o nul
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
→ candidates: [Wire@1.0]
“C:\Users\bench\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src” “C:\Users\bench\AppData\Local\Temp\arduino\sketches\2F98111DFBA1E6C28904AC8DCA6A0C04\sketch\Example1_BasicNMEARead.ino.cpp” -o nul
Alternatives for SparkFun_u-blox_GNSS_v3.h: [SparkFun u-blox GNSS v3@3.0.12]
ResolveLibrary(SparkFun_u-blox_GNSS_v3.h)
→ candidates: [SparkFun u-blox GNSS v3@3.0.12]
“C:\Users\bench\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src” “-Ic:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src” “C:\Users\bench\AppData\Local\Temp\arduino\sketches\2F98111DFBA1E6C28904AC8DCA6A0C04\sketch\Example1_BasicNMEARead.ino.cpp” -o nul
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
→ candidates: [SPI@1.0]
“C:\Users\bench\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src” “-Ic:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src” “C:\Users\bench\AppData\Local\Temp\arduino\sketches\2F98111DFBA1E6C28904AC8DCA6A0C04\sketch\Example1_BasicNMEARead.ino.cpp” -o nul
Using cached library dependencies for file: C:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src\Wire.cpp
Using cached library dependencies for file: C:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src\utility\twi.c
Using cached library dependencies for file: c:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src\sfe_bus.cpp
“C:\Users\bench\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src” “-Ic:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src” “c:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src\u-blox_GNSS.cpp” -o nul
“C:\Users\bench\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src” “-Ic:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src” “C:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src\SPI.cpp” -o nul
Generating function prototypes…
“C:\Users\bench\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src” “-Ic:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src” “C:\Users\bench\AppData\Local\Temp\arduino\sketches\2F98111DFBA1E6C28904AC8DCA6A0C04\sketch\Example1_BasicNMEARead.ino.cpp” -o “C:\Users\bench\AppData\Local\Temp\arduino\sketches\2F98111DFBA1E6C28904AC8DCA6A0C04\preproc\ctags_target_for_gcc_minus_e.cpp”
“C:\Users\bench\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags” -u --language-force=c++ -f - --c+±kinds=svpf --fields=KSTtzns --line-directives “C:\Users\bench\AppData\Local\Temp\arduino\sketches\2F98111DFBA1E6C28904AC8DCA6A0C04\preproc\ctags_target_for_gcc_minus_e.cpp”
Compiling sketch…
“C:\Users\bench\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src” “-Ic:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src” “C:\Users\bench\AppData\Local\Temp\arduino\sketches\2F98111DFBA1E6C28904AC8DCA6A0C04\sketch\Example1_BasicNMEARead.ino.cpp” -o “C:\Users\bench\AppData\Local\Temp\arduino\sketches\2F98111DFBA1E6C28904AC8DCA6A0C04\sketch\Example1_BasicNMEARead.ino.cpp.o”
Compiling libraries…
Compiling library “Wire”
Using previously compiled file: C:\Users\bench\AppData\Local\Temp\arduino\sketches\2F98111DFBA1E6C28904AC8DCA6A0C04\libraries\Wire\utility\twi.c.o
Using previously compiled file: C:\Users\bench\AppData\Local\Temp\arduino\sketches\2F98111DFBA1E6C28904AC8DCA6A0C04\libraries\Wire\Wire.cpp.o
Compiling library “SparkFun u-blox GNSS v3”
“C:\Users\bench\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src” “-Ic:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src” “c:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src\u-blox_GNSS.cpp” -o “C:\Users\bench\AppData\Local\Temp\arduino\sketches\2F98111DFBA1E6C28904AC8DCA6A0C04\libraries\SparkFun_u-blox_GNSS_v3\u-blox_GNSS.cpp.o”
“C:\Users\bench\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src” “-Ic:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src” “-IC:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src” “c:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src\sfe_bus.cpp” -o “C:\Users\bench\AppData\Local\Temp\arduino\sketches\2F98111DFBA1E6C28904AC8DCA6A0C04\libraries\SparkFun_u-blox_GNSS_v3\sfe_bus.cpp.o”
c:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src\u-blox_GNSS.cpp: In member function ‘void DevUBLOXGNSS::checkCallbacks()’:
c:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src\u-blox_GNSS.cpp:6051:7: error: ‘rtcmInputStorage’ was not declared in this scope
if (rtcmInputStorage.rtcm1005CallbackPointer != nullptr) // If the pointer to the callback has been defined
^~~~~~~~~~~~~~~~
c:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3\src\u-blox_GNSS.cpp:6059:7: error: ‘rtcmInputStorage’ was not declared in this scope
if (rtcmInputStorage.rtcm1006CallbackPointer != nullptr) // If the pointer to the callback has been defined
^~~~~~~~~~~~~~~~
Using library Wire at version 1.0 in folder: C:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire
Using library SparkFun u-blox GNSS v3 at version 3.0.12 in folder: C:\Users\bench\OneDrive\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_v3
Using library SPI at version 1.0 in folder: C:\Users\bench\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI
exit status 1
Compilation error: exit status 1