When I compile the “Example” file MAX31855K Thermocouple Breakout for a RedBoard ATP I get the following errors.
Can you tell me what I am doing wrong?
Arduino: 1.8.12 (Windows 10), Board: “SparkFun RedBoard Artemis ATP, 921600, SparkFun Variable Loader (Recommended)”
In file included from C:\Users\Toshiba\AppData\Local\Temp\arduino_modified_sketch_562437\SparkFun_MAX31855K_Thermocouple_Breakout.ino:30:
C:\Users\Toshiba\Documents\Arduino\libraries\SparkFun_MAX31855K_Thermocouple_Digitizer\src/SparkFunMAX31855k.h:45:22: warning: unsigned conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} changes value from ‘256’ to ‘0’ [-Woverflow]
const uint8_t NONE = 256; // This is used to indicate VCC or GND pin isn’t used
^~~
C:\Users\Toshiba\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major/bin/arm-none-eabi-ar: unable to rename ‘core\core.a’; reason: File exists
exit status 1
Error compiling for board SparkFun RedBoard Artemis ATP.
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: core\startup\startup_gcc.c.o: in function `Reset_Handler’:
C:\Users\Toshiba\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.1.1\variants\redboard_artemis_atp\startup/startup_gcc.c:321: undefined reference to `main’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: sketch\SparkFun_MAX31855K_Thermocouple_Breakout.ino.cpp.o: in function `__static_initialization_and_destruction_0’:
C:\Users\Toshiba\AppData\Local\Temp\arduino_modified_sketch_562437/SparkFun_MAX31855K_Thermocouple_Breakout.ino:46: undefined reference to `__dso_handle’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: libraries\SparkFun_MAX31855K_Thermocouple_Digitizer\SparkFunMAX31855k.cpp.o: in function `SparkFunMAX31855k::SparkFunMAX31855k(unsigned char, unsigned char, unsigned char, bool)':
C:\Users\Toshiba\Documents\Arduino\libraries\SparkFun_MAX31855K_Thermocouple_Digitizer\src/SparkFunMAX31855k.cpp:45: undefined reference to `pinMode(unsigned char, unsigned char)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: C:\Users\Toshiba\Documents\Arduino\libraries\SparkFun_MAX31855K_Thermocouple_Digitizer\src/SparkFunMAX31855k.cpp:49: undefined reference to `digitalWrite(unsigned char, unsigned char)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: C:\Users\Toshiba\Documents\Arduino\libraries\SparkFun_MAX31855K_Thermocouple_Digitizer\src/SparkFunMAX31855k.cpp:54: undefined reference to `pinMode(unsigned char, unsigned char)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: C:\Users\Toshiba\Documents\Arduino\libraries\SparkFun_MAX31855K_Thermocouple_Digitizer\src/SparkFunMAX31855k.cpp:55: undefined reference to `digitalWrite(unsigned char, unsigned char)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: libraries\SparkFun_MAX31855K_Thermocouple_Digitizer\SparkFunMAX31855k.cpp.o: in function `SparkFunMAX31855k::SparkFunMAX31855k(unsigned char, unsigned char, unsigned char, bool)':
C:\Users\Toshiba\Documents\Arduino\libraries\SparkFun_MAX31855K_Thermocouple_Digitizer\src/SparkFunMAX31855k.cpp:59: undefined reference to `pinMode(unsigned char, unsigned char)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: C:\Users\Toshiba\Documents\Arduino\libraries\SparkFun_MAX31855K_Thermocouple_Digitizer\src/SparkFunMAX31855k.cpp:60: undefined reference to `digitalWrite(unsigned char, unsigned char)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: libraries\SPI\SPI.cpp.o: in function `SPIClass::config(SPISettings)':
C:\Users\Toshiba\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.1.1\libraries\SPI\src/SPI.cpp:133: undefined reference to `IOMaster::initialize()’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: libraries\SPI\SPI.cpp.o: in function `SPIClass::begin()':
C:\Users\Toshiba\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.1.1\libraries\SPI\src/SPI.cpp:53: undefined reference to `ap3_iom_pad_funcsel(unsigned char, ap3_iom_pad_type_e, unsigned char*, unsigned char*)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: C:\Users\Toshiba\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.1.1\libraries\SPI\src/SPI.cpp:62: undefined reference to `padMode(unsigned char, am_hal_gpio_pincfg_t, ap3_err_t*)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: C:\Users\Toshiba\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.1.1\libraries\SPI\src/SPI.cpp:72: undefined reference to `ap3_iom_pad_funcsel(unsigned char, ap3_iom_pad_type_e, unsigned char*, unsigned char*)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: C:\Users\Toshiba\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.1.1\libraries\SPI\src/SPI.cpp:81: undefined reference to `padMode(unsigned char, am_hal_gpio_pincfg_t, ap3_err_t*)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: C:\Users\Toshiba\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.1.1\libraries\SPI\src/SPI.cpp:92: undefined reference to `ap3_iom_pad_funcsel(unsigned char, ap3_iom_pad_type_e, unsigned char*, unsigned char*)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: C:\Users\Toshiba\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.1.1\libraries\SPI\src/SPI.cpp:101: undefined reference to `padMode(unsigned char, am_hal_gpio_pincfg_t, ap3_err_t*)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: C:\Users\Toshiba\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.1.1\libraries\SPI\src/SPI.cpp:102: undefined reference to `AP3_GPIO_PINCFG_NULL’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: libraries\SPI\SPI.cpp.o: in function `SPIClass::SPIClass(unsigned char, ap3_spi_duplex_e)':
C:\Users\Toshiba\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.1.1\libraries\SPI\src/SPI.cpp:38: undefined reference to `IOMaster::IOMaster(unsigned char)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: core\config\variant.cpp.o: in function `__static_initialization_and_destruction_0’:
C:\Users\Toshiba\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.1.1\variants\redboard_artemis_atp\config/variant.cpp:81: undefined reference to `Uart::Uart(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: C:\Users\Toshiba\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.1.1\variants\redboard_artemis_atp\config/variant.cpp:82: undefined reference to `Uart::Uart(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)’
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: C:\Users\Toshiba\AppData\Local\Temp\arduino_build_536644/SparkFun_MAX31855K_Thermocouple_Breakout.ino.axf: hidden symbol `__dso_handle’ isn’t defined
c:/users/toshiba/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: final link failed: bad value
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board SparkFun RedBoard Artemis ATP.
This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.