I just got this kit, and I am having problems running sketches. I set up the Arduino IDE with the proper libraries and the RedBoard Turbo. I got the Qwiic Starter sketch working. I also got several of the Redboard Demo sketches to work.
However, now I can’t get any other sketches to load since. I have disconnected and reconnected the USB cable to reset the port, and press the reset button. Nothing works.
Were do I go from here?
I got past the problem with the port, for now.
I tried running the Feature Demo OLED code from the website:
#include <Wire.h> // Include Wire if you're using I2C
#include <SFE_MicroOLED.h> // Include the SFE_MicroOLED library
#define PIN_RESET 9
#define DC_JUMPER 1
MicroOLED oled(PIN_RESET, DC_JUMPER); // I2C declaration
void setup()
{
delay(100);
Wire.begin();
oled.begin(); // Initialize the OLED
oled.clear(ALL); // Clear the display's internal memory
oled.display(); // Display what's in the buffer (splashscreen)
delay(1000); // Delay 1000 ms
oled.clear(PAGE); // Clear the buffer.
randomSeed(analogRead(A0) + analogRead(A1));
When I try to compile, I get these messages:
Arduino: 1.8.13 (Windows 10), Board: "SparkFun RedBoard Turbo"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\piers\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\piers\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\piers\Documents\Arduino\libraries -fqbn=SparkFun:samd:RedBoard_Turbo -vid-pid=1B4F_0015 -ide-version=10813 -build-path C:\Users\piers\AppData\Local\Temp\arduino_build_903760 -warnings=none -build-cache C:\Users\piers\AppData\Local\Temp\arduino_cache_184525 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.bossac.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -prefs=runtime.tools.CMSIS.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.openocd.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino -verbose C:\Users\piers\Documents\Arduino\Feature_Demo_OLED\Feature_Demo_OLED.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\piers\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\piers\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\piers\Documents\Arduino\libraries -fqbn=SparkFun:samd:RedBoard_Turbo -vid-pid=1B4F_0015 -ide-version=10813 -build-path C:\Users\piers\AppData\Local\Temp\arduino_build_903760 -warnings=none -build-cache C:\Users\piers\AppData\Local\Temp\arduino_cache_184525 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.bossac.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -prefs=runtime.tools.CMSIS.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.openocd.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=C:\Users\piers\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino -verbose C:\Users\piers\Documents\Arduino\Feature_Demo_OLED\Feature_Demo_OLED.ino
Using board 'RedBoard_Turbo' from platform in folder: C:\Users\piers\AppData\Local\Arduino15\packages\SparkFun\hardware\samd\1.8.1
Using core 'arduino' from platform in folder: C:\Users\piers\AppData\Local\Arduino15\packages\SparkFun\hardware\samd\1.8.1
Detecting libraries used...
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\sketch\\Feature_Demo_OLED.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
-> candidates: [Wire@1.0]
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire" "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\sketch\\Feature_Demo_OLED.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for SFE_MicroOLED.h: [SparkFun_Micro_OLED_Breakout@1.2.9]
ResolveLibrary(SFE_MicroOLED.h)
-> candidates: [SparkFun_Micro_OLED_Breakout@1.2.9]
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire" "-IC:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src" "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\sketch\\Feature_Demo_OLED.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire" "-IC:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src" "C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire\\Wire.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire" "-IC:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src" "C:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src\\SFE_MicroOLED.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire" "-IC:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src" "C:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src\\hardware.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
-> candidates: [SPI@1.0]
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire" "-IC:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\SPI" "C:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src\\hardware.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire" "-IC:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\SPI" "C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\SPI\\SPI.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Generating function prototypes...
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire" "-IC:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\SPI" "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\sketch\\Feature_Demo_OLED.ino.cpp" -o "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\preproc\\ctags_target_for_gcc_minus_e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire" "-IC:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\SPI" "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\sketch\\Feature_Demo_OLED.ino.cpp" -o "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\sketch\\Feature_Demo_OLED.ino.cpp.o"
Compiling libraries...
Compiling library "Wire"
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire" "-IC:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\SPI" "C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire\\Wire.cpp" -o "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\libraries\\Wire\\Wire.cpp.o"
Compiling library "SparkFun_Micro_OLED_Breakout"
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire" "-IC:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\SPI" "C:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src\\SFE_MicroOLED.cpp" -o "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\libraries\\SparkFun_Micro_OLED_Breakout\\SFE_MicroOLED.cpp.o"
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire" "-IC:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\SPI" "C:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src\\hardware.cpp" -o "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\libraries\\SparkFun_Micro_OLED_Breakout\\hardware.cpp.o"
Compiling library "SPI"
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\Wire" "-IC:\\Users\\piers\\Documents\\Arduino\\libraries\\SparkFun_Micro_OLED_Breakout\\src" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\SPI" "C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\libraries\\SPI\\SPI.cpp" -o "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\libraries\\SPI\\SPI.cpp.o"
Compiling core...
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x1B4F -DUSB_PID=0x0015 -DUSBCON "-DUSB_MANUFACTURER=\"SparkFun\"" "-DUSB_PRODUCT=\"RedBoard Turbo\"" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\cores\\arduino" "-IC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo" "C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo\\variant.cpp" -o "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\core\\variant.cpp.o"
Using precompiled core: C:\Users\piers\AppData\Local\Temp\arduino_cache_184525\core\core_SparkFun_samd_RedBoard_Turbo_49911463b61a66692760355d1bf62947.a
Linking everything together...
"C:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-gcc" "-LC:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760" -Os -Wl,--gc-sections -save-temps "-TC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\samd\\1.8.1\\variants\\SparkFun_RedBoard_Turbo/linker_scripts/gcc/flash_with_bootloader.ld" "-Wl,-Map,C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760/Feature_Demo_OLED.ino.map" --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m0plus -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760/Feature_Demo_OLED.ino.elf" "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\sketch\\Feature_Demo_OLED.ino.cpp.o" "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\libraries\\SparkFun_Micro_OLED_Breakout\\SFE_MicroOLED.cpp.o" "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\libraries\\SparkFun_Micro_OLED_Breakout\\hardware.cpp.o" "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760\\core\\variant.cpp.o" -Wl,--start-group "-LC:\\Users\\piers\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Lib/GCC/" -larm_cortexM0l_math -lm "C:\\Users\\piers\\AppData\\Local\\Temp\\arduino_build_903760/..\\arduino_cache_184525\\core\\core_SparkFun_samd_RedBoard_Turbo_49911463b61a66692760355d1bf62947.a" -Wl,--end-group
C:\Users\piers\AppData\Local\Temp\arduino_build_903760/..\arduino_cache_184525\core\core_SparkFun_samd_RedBoard_Turbo_49911463b61a66692760355d1bf62947.a(main.cpp.o): In function `main':
C:\Users\piers\AppData\Local\Arduino15\packages\SparkFun\hardware\samd\1.8.1\cores\arduino/main.cpp:51: undefined reference to `loop'
collect2.exe: error: ld returned 1 exit status
Using library Wire at version 1.0 in folder: C:\Users\piers\AppData\Local\Arduino15\packages\SparkFun\hardware\samd\1.8.1\libraries\Wire
Using library SparkFun_Micro_OLED_Breakout at version 1.2.9 in folder: C:\Users\piers\Documents\Arduino\libraries\SparkFun_Micro_OLED_Breakout
Using library SPI at version 1.0 in folder: C:\Users\piers\AppData\Local\Arduino15\packages\SparkFun\hardware\samd\1.8.1\libraries\SPI
exit status 1
Error compiling for board SparkFun RedBoard Turbo.
I read on an Arduino forum that “exit status 1” can be caused by conflicts with Antivirus programs, so I disabled it and it still doesn’t work.
jfbauer
November 30, 2020, 8:29pm
3
About 15 lines or so from the end of the error messages there is
C:\Users\piers\AppData\Local\Arduino15\packages\SparkFun\hardware\samd\1.8.1\cores\arduino/main.cpp:51: undefined reference to `loop’
You are missing the loop function. Even if you don’t want it to do anything, it still needs to be there.
void loop() {
}