SparkFun Pro nRF52840 Mini tutorial compile error: 'Serial' was not declared in this scope

I just received a SparkFun Pro nRF52840 Mini and I’m working through the tutorial here: https://learn.sparkfun.com/tutorials/nr … cuitpython

I followed the directions about installing the Adafruit nRF52 boards then updating boards.txt and copying over the sparkfun_nrf52840_mini variant. After restarting the Arduino IDE I see the “SparkFun Pro nRF52840 Mini” board as an option, which I selected.

Next, I created a new sketch and copied over the example Blinky BLE code from the tutorial. However when I try to verify (or upload) the sketch, I get some compile errors:

/Users/user/Arduino/bletest/bletest.ino: In function 'void setup()':
bletest:7:3: error: 'Serial' was not declared in this scope
   Serial.begin(9600); // Serial is the USB serial port
   ^~~~~~
/Users/user/Arduino/bletest/bletest.ino:7:3: note: suggested alternative: 'Serial1'
   Serial.begin(9600); // Serial is the USB serial port
   ^~~~~~
   Serial1
/Users/user/Arduino/bletest/bletest.ino: In function 'void loop()':
bletest:26:3: error: 'Serial' was not declared in this scope
   Serial.println(buttonState);
   ^~~~~~
/Users/user/Arduino/bletest/bletest.ino:26:3: note: suggested alternative: 'Serial1'
   Serial.println(buttonState);
   ^~~~~~
   Serial1
exit status 1
'Serial' was not declared in this scope

I tried changing my board to Nordic nRF52840DK (PCA10056) like the tutorial recommended and that did work (I can compile the example and get more complicated examples working with no problem) however I’m concerned that using that board will not let me access things like the qwiic connector.

Is there a way to fix the compile errors? Should I ignore them and just use the Nordic board as my choice?

Based on this issue in github it appears that the Adafruit nRF52 v0.11.x library is responsible for the issue

https://github.com/sparkfun/nRF52840_Br … Q/issues/3

Rolling back to v0.10.1 fixed the issue

Hi mason55,

Good catch here! We have identified the problem and have a fix ready so the SparkFun Pro nRF52840 will work with the latest release of that library shortly. Keep an eye on that repository for a commit today or tomorrow with the fix. We’re also going to update the [Arduino and CircuitPython Software Development Guide with an updated boards.txt file and board definitions.

Once the fix has been pushed, you’ll need to adjust that boards.txt file and probably the board definition.](https://learn.sparkfun.com/tutorials/nrf52840-development-with-arduino-and-circuitpython#introduction)