# Attempting to test QWIIC u-blox SAM-M8Q GPS board with Redboard Turbo

**URL:** <https://community.sparkfun.com/t/attempting-to-test-qwiic-u-blox-sam-m8q-gps-board-with-redboard-turbo/38612>\
**Category:** Qwiic System\
**Tags:** qwiic\
**Created:** [January 8, 2020, 9:22am UTC](https://community.sparkfun.com/t/attempting-to-test-qwiic-u-blox-sam-m8q-gps-board-with-redboard-turbo/38612 "2020-01-08T09:22:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NotDavid4JustDavid](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@NotDavid4JustDavid](https://community.sparkfun.com/u/NotDavid4JustDavid)\
**Post date:** [January 8, 2020, 9:22am UTC](https://community.sparkfun.com/t/attempting-to-test-qwiic-u-blox-sam-m8q-gps-board-with-redboard-turbo/38612/1 "2020-01-08T09:22:57Z")

</div>

I got a bright new shiny QWIIC GPS for Christmas that I’m trying to get working with my Redboard Turbo. Bringing up the example code from the Sparkfun ublox Library called Example15\_GetDateTime.ino I immediately see that it uses ‘Serial’ all over the place. Usually this can be fixed for my Redboard Turbo by either doing a global search-and-replace to make ‘Serial’ become ‘SerialUSB’ in the sketch, or just add in the define:

#define Serial SerialUSB

Up at the top of the source. However, with the Sparkfun u-blox GPS library, I end up getting this error message regardless:

Arduino: 1.8.9 (Windows 10), Board: “SparkFun RedBoard Turbo”

Build options changed, rebuilding all

libraries\SparkFun\_Ublox\_Arduino\_Library\SparkFun\_Ublox\_Arduino\_Library.cpp.o: In function `SFE\_UBLOX\_GPS::processUBX(unsigned char, ubxPacket\*)':

C:\Users\xxxx\Documents\Arduino\libraries\SparkFun\_Ublox\_Arduino\_Library\src/SparkFun\_Ublox\_Arduino\_Library.cpp:652: undefined reference to `Serial’

collect2.exe: error: ld returned 1 exit status

exit status 1

Error compiling for board SparkFun RedBoard Turbo.

* * *

Does this mean I have to manually go in and muck with the Library C++ source itself to fix all references to ‘Serial’ that might exist there? I’m hoping there is an easier answer for Redboard Turbo users.

---

<div class="post-metadata">

**Author:** ![NotDavid4JustDavid](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@NotDavid4JustDavid](https://community.sparkfun.com/u/NotDavid4JustDavid)\
**Post date:** [January 10, 2020, 7:29am UTC](https://community.sparkfun.com/t/attempting-to-test-qwiic-u-blox-sam-m8q-gps-board-with-redboard-turbo/38612/2 "2020-01-10T07:29:54Z")

</div>

Re-examining this, it looks like I only needed to comment out the one offending line in the GPS library file. After that, it compiles fine for my Redboard Turbo.

It is line 650 in the file SparkFun\_Ublox\_Arduino\_Library.cpp:

[//Serial.println](https://Serial.println)(F(“processUBX: counter hit MAX\_PAYLOAD\_SIZE”));

What’s strange is that I have another very large sketch that compiled fine while referencing this library for the GPS module, with this line still present, but it ended up having some strange behaviors not even related to GPS.
