bigtreetech / BIGTREETECH-SKR-mini-E3

BIGTREETECH SKR-mini-E3 motherboard is a ultra-quiet, low-power, high-quality 3D printing machine control board. It is launched by the 3D printing team of Shenzhen BIGTREE technology co., LTD. This board is specially tailored for Ender 3 printer, perfectly replacing the original Ender3 printer motherboard.
2.01k stars 1.97k forks source link

Compile v1.2 fail error - issue with Adafruit_MAX31865 v1.2.0 #257

Open lastone2print opened 4 years ago

lastone2print commented 4 years ago

I get the following error and I can not seem to find a solution.

Compiling .pio\build\STM32F103RC_btt_512K\liba17\USBComposite\Consumer.cpp.o .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp: In member function 'bool Adafruit_I2CDevice::read(uint8_t*, size_t, bool)': .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp:160:79: error: no matching function for call to 'TwoWire::requestFrom(uint8_t, uint8_t, uint8_t)' size_t recv = _wire->requestFrom((uint8_t)_addr, (uint8_t)len, (uint8_t)stop); ^ In file included from C:\Users\lastp.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/Wire.h:42:0, from .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_I2CDevice.h:1, from .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp:1: C:\Users\lastp.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/utility/WireBase.h:101:11: note: candidate: uint8 WireBase::requestFrom(uint8, int) uint8 requestFrom(uint8, int); ^~~ C:\Users\lastp.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/utility/WireBase.h:101:11: note: candidate expects 2 arguments, 3 provided C:\Users\lastp.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/utility/WireBase.h:106:11: note: candidate: uint8 WireBase::requestFrom(int, int) uint8 requestFrom(int, int); ^~~ C:\Users\lastp.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/utility/WireBase.h:106:11: note: candidate expects 2 arguments, 3 provided [.pio\build\STM32F103RC_btt_512K\lib2ab\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp.o] Error 1 In file included from .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.h:55:0, from .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp:17: .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:37:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~~ .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:37:43: note: suggested alternative: 'SPI_CR1_LSBFIRST' BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~~ SPI_CR1_LSBFIRST .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:42:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~~ .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:42:43: note: suggested alternative: 'SPI_CR1_LSBFIRST' BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~~ SPI_CR1_LSBFIRST In file included from .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp:17:0: .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.h:84:32: warning: passing NULL to non-pointer argument 1 of 'Adafruit_SPIDevice::Adafruit_SPIDevice(int8_t, uint32_t, BitOrder, uint8_t, SPIClass)' [-Wconversion-null] Adafruit_SPIDevice spi_dev = NULL; ^~~~ In file included from c:\users\lastp.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\inttypes.h:22:0, from C:\Users\lastp.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/avr/pgmspace.h:4, from C:\Users\lastp.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/WString.h:29, from C:\Users\lastp.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:47, from C:\Users\lastp.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30, from .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.h:50, from .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp:17: .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.h:84:32: error: call to 'Adafruit_SPIDevice::Adafruit_SPIDevice(int8_t, uint32_t, BitOrder, uint8_t, SPIClass)' uses the default argument for parameter 3, which is not yet defined Adafruit_SPIDevice spi_dev = NULL; ^ .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp: In constructor 'Adafruit_MAX31865::Adafruit_MAX31865(int8_t, int8_t, int8_t, int8_t)': .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp:38:76: error: call to 'Adafruit_SPIDevice::Adafruit_SPIDevice(int8_t, int8_t, int8_t, int8_t, uint32_t, BitOrder, uint8_t)' uses the default argument for parameter 6, which is not yet defined spi_dev = Adafruit_SPIDevice(spi_cs, spi_clk, spi_miso, spi_mosi, 1000000); ^ .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp: In constructor 'Adafruit_MAX31865::Adafruit_MAX31865(int8_t)': .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp:49:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope Adafruit_SPIDevice(spi_cs, 1000000, SPI_BITORDER_MSBFIRST, SPI_MODE1); ^~~~~ .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp:49:43: note: suggested alternative: 'SPI_CR1_LSBFIRST' Adafruit_SPIDevice(spi_cs, 1000000, SPI_BITORDER_MSBFIRST, SPI_MODE1); ^~~~~ SPI_CR1_LSBFIRST [.pio\build\STM32F103RC_btt_512K\lib1cd\Adafruit_MAX31865\Adafruit_MAX31865.cpp.o] Error 1 In file included from .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_BusIO_Register.h:2:0, from .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_BusIO_Register.cpp:1: .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:37:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~~ .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:37:43: note: suggested alternative: 'SPI_CR1_LSBFIRST' BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~~ SPI_CR1_LSBFIRST .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:42:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~~ .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:42:43: note: suggested alternative: 'SPI_CR1_LSBFIRST' BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~~ SPI_CR1_LSBFIRST In file included from .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp:1:0: .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:37:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~~ [.pio\build\STM32F103RC_btt_512K\lib2ab\Adafruit BusIO_ID6214\Adafruit_BusIO_Register.cpp.o] Error 1 .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:37:43: note: suggested alternative: 'SPI_CR1_LSBFIRST' BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~~ SPI_CR1_LSBFIRST .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:42:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~~ .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:42:43: note: suggested alternative: 'SPI_CR1_LSBFIRST' BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~~ SPI_CR1_LSBFIRST .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp: In member function 'void Adafruit_SPIDevice::transfer(uint8_t, size_t)': .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp:99:31: error: no matching function for call to 'SPIClass::transfer(uint8_t&, size_t&)' _spi->transfer(buffer, len); ^ In file included from .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:1:0, from .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp:1: Marlin\src\HAL\STM32F1/SPI.h:268:11: note: candidate: uint8_t SPIClass::transfer(uint8_t) const uint8_t transfer(uint8_t data) const; ^~~~ Marlin\src\HAL\STM32F1/SPI.h:268:11: note: candidate expects 1 argument, 2 provided .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp:115:23: error: 'SPI_BITORDER_LSBFIRST' was not declared in this scope if (_dataOrder == SPI_BITORDER_LSBFIRST) { ^~~~~ .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp:115:23: note: suggested alternative: 'SPI_CR1_LSBFIRST' if (_dataOrder == SPI_BITORDER_LSBFIRST) { ^~~~~ SPI_CR1_LSBFIRST .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp:149:23: error: 'SPI_BITORDER_LSBFIRST' was not declared in this scope if (_dataOrder == SPI_BITORDER_LSBFIRST) { ^~~~~ .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp:149:23: note: suggested alternative: 'SPI_CR1_LSBFIRST' if (_dataOrder == SPI_BITORDER_LSBFIRST) { ^~~~~ SPI_CR1_LSBFIRST [.pio\build\STM32F103RC_btt_512K\lib2ab\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp.o] Error 1

Rende009 commented 4 years ago

I have it too

STM32F103RC_btt.zip

Marlin-config.zip

Xav-Pe commented 4 years ago

Same here, when compiling from the current Marlin bugfix branch, or from BT provided Marlin version.

soothsayer011 commented 4 years ago

I am also having this compiling issue in the main Marlin branch and BTT branch and for both the skr mini e3 v1.2 and v2 firmware.

Building in release mode Compiling .pio\build\STM32F103RC_btt_512K\lib7a7\Adafruit BusIO_ID6214\Adafruit_BusIO_Register.cpp.o Compiling .pio\build\STM32F103RC_btt_512K\lib7a7\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp.o Compiling .pio\build\STM32F103RC_btt_512K\lib7a7\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp.o Compiling .pio\build\STM32F103RC_btt_512K\lib65e\Adafruit_MAX31865\Adafruit_MAX31865.cpp.o .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp: In member function 'bool Adafruit_I2CDevice::read(uint8_t*, size_t, bool)': Compiling .pio\build\STM32F103RC_btt_512K\lib210\USBComposite\usb_mass.c.o .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp:160:79: error: no matching function for call to 'TwoWire::requestFrom(uint8_t, uint8_t, uint8_t)' size_t recv = _wire->requestFrom((uint8_t)_addr, (uint8_t)len, (uint8_t)stop); ^ In file included from C:\Users\adam.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/Wire.h:42:0, from .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_I2CDevice.h:1, from .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp:1: C:\Users\adam.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/utility/WireBase.h:101:11: note: candidate: uint8 WireBase::requestFrom(uint8, int) uint8 requestFrom(uint8, int); ^~~ Compiling .pio\build\STM32F103RC_btt_512K\lib210\USBComposite\usb_mass_mal.c.o C:\Users\adam.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/utility/WireBase.h:101:11: note: candidate expects 2 arguments, 3 provided C:\Users\adam.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/utility/WireBase.h:106:11: note: candidate: uint8 WireBase::requestFrom(int, int) uint8 requestFrom(int, int); ^~~ C:\Users\adam.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/utility/WireBase.h:106:11: note: candidate expects 2 arguments, 3 provided In file included from .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_BusIO_Register.h:2:0, from .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_BusIO_Register.cpp:1: .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:37:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~~ Compiling .pio\build\STM32F103RC_btt_512K\lib210\USBComposite\usb_midi_device.c.o In file included from .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp:1:0: .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:37:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~Compiling .pio\build\STM32F103RC_btt_512K\lib210\USBComposite\usb_scsi.c.o

~Compiling .pio\build\STM32F103RC_btt_512K\lib210\USBComposite\usb_setup.cpp.o
~Compiling .pio\build\STM32F103RC_btt_512K\lib210\USBComposite\usb_x360.c.o

.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:37:43: note: suggested alternative: 'SPI_CR1_LSBFIRST' BitOrder dataOrder = SPI_BITORDER_MSBFIRST, ^~~~~ Compiling .pio\build\STM32F103RC_btt_512K\libba9\EEPROM\EEPROM.cpp.o SPI_CR1_LSBFIRST .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:42:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope Compiling .pio\build\STM32F103RC_btt_512K\libba9\EEPROM\flash_stm32.c.o BitOrder dataOrder = SPI_BITORDER_MSBFIRST, Compiling .pio\build\STM32F103RC_btt_512K\lib0c8\Adafruit NeoPixel\Adafruit_NeoPixel.cpp.o ^~~~Compiling .pio\build\STM32F103RC_btt_512K\lib0c8\Adafruit NeoPixel\esp8266.c.o


.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:37:43: note: suggested alternative: 'SPI_CR1_LSBFIRST'
                      BitOrder dataOrder = SPI_BITORDER_MSBFIRST,
                                           ^~~~~~~~~~~~~~~~~~~~~
                                           SPI_CR1_LSBFIRST
.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:42:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope
                      BitOrder dataOrder = SPI_BITORDER_MSBFIRST,
                                           ^~~~~~~~~~~~~~~~~~~~~
.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:42:43: note: suggested alternative: 'SPI_CR1_LSBFIRST'
                      BitOrder dataOrder = SPI_BITORDER_MSBFIRST,
                                           ^~~~~~~~~~~~~~~~~~~~~
                                           SPI_CR1_LSBFIRST
In file included from .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.h:55:0,
                 from .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp:17:
.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:37:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope
                      BitOrder dataOrder = SPI_BITORDER_MSBFIRST,
                                           ^~~~~~~~~~~~~~~~~~~~~
.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:42:43: note: suggested alternative: 'SPI_CR1_LSBFIRST'
                      BitOrder dataOrder = SPI_BITORDER_MSBFIRST,
                                           ^~~~~~~~~~~~~~~~~~~~~
                                           SPI_CR1_LSBFIRST
.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp: In member function 'void Adafruit_SPIDevice::transfer(uint8_t*, size_t)':
.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp:99:31: error: no matching function for call to 'SPIClass::transfer(uint8_t*&, size_t&)'
     _spi->transfer(buffer, len);
                               ^
In file included from .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:1:0,
                 from .pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp:1:
Marlin\src\HAL\STM32F1/SPI.h:268:11: note: candidate: uint8_t SPIClass::transfer(uint8_t) const
   uint8_t transfer(uint8_t data) const;
           ^~~~~~~~
Marlin\src\HAL\STM32F1/SPI.h:268:11: note:   candidate expects 1 argument, 2 provided
.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp:115:23: error: 'SPI_BITORDER_LSBFIRST' was not declared in this scope
     if (_dataOrder == SPI_BITORDER_LSBFIRST) {
                       ^~~~~~~~~~~~~~~~~~~~~
.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:37:43: note: suggested alternative: 'SPI_CR1_LSBFIRST'
                      BitOrder dataOrder = SPI_BITORDER_MSBFIRST,
                                           ^~~~~~~~~~~~~~~~~~~~~
                                           SPI_CR1_LSBFIRST
.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:42:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope
                      BitOrder dataOrder = SPI_BITORDER_MSBFIRST,
                                           ^~~~~~~~~~~~~~~~~~~~~
.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp:115:23: note: suggested alternative: 'SPI_CR1_LSBFIRST'
     if (_dataOrder == SPI_BITORDER_LSBFIRST) {
                       ^~~~~~~~~~~~~~~~~~~~~
                       SPI_CR1_LSBFIRST
.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp:149:23: error: 'SPI_BITORDER_LSBFIRST' was not declared in this scope
     if (_dataOrder == SPI_BITORDER_LSBFIRST) {
                       ^~~~~~~~~~~~~~~~~~~~~
.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214/Adafruit_SPIDevice.h:42:43: note: suggested alternative: 'SPI_CR1_LSBFIRST'
                      BitOrder dataOrder = SPI_BITORDER_MSBFIRST,
                                           ^~~~~~~~~~~~~~~~~~~~~
                                           SPI_CR1_LSBFIRST
In file included from .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp:17:0:
.pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.h:84:32: warning: passing NULL to non-pointer argument 1 of 'Adafruit_SPIDevice::Adafruit_SPIDevice(int8_t, uint32_t, BitOrder, uint8_t, SPIClass*)' 
[-Wconversion-null]
   Adafruit_SPIDevice spi_dev = NULL;
                                ^~~~
In file included from c:\users\adam\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\inttypes.h:22:0,
                 from C:\Users\adam\.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/avr/pgmspace.h:4,
                 from C:\Users\adam\.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/WString.h:29,
                 from C:\Users\adam\.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:47,
                 from C:\Users\adam\.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30,
                 from .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.h:50,
                 from .pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp:17:
.pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.h:84:32: error: call to 'Adafruit_SPIDevice::Adafruit_SPIDevice(int8_t, uint32_t, BitOrder, uint8_t, SPIClass*)' uses the default argument for parameter 3, which is not yet defined
   Adafruit_SPIDevice spi_dev = NULL;
                                ^
.pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp: In constructor 'Adafruit_MAX31865::Adafruit_MAX31865(int8_t, int8_t, int8_t, int8_t)':
.pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp:38:76: error: call to 'Adafruit_SPIDevice::Adafruit_SPIDevice(int8_t, int8_t, int8_t, int8_t, uint32_t, BitOrder, uint8_t)' uses the default argument for parameter 6, which is not yet defined
   spi_dev = Adafruit_SPIDevice(spi_cs, spi_clk, spi_miso, spi_mosi, 1000000);
                                                                            ^
.pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp: In constructor 'Adafruit_MAX31865::Adafruit_MAX31865(int8_t)':
.pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp:49:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope
       Adafruit_SPIDevice(spi_cs, 1000000, SPI_BITORDER_MSBFIRST, SPI_MODE1);
                                           ^~~~~~~~~~~~~~~~~~~~~
.pio\libdeps\STM32F103RC_btt_512K\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp:149:23: note: suggested alternative: 'SPI_CR1_LSBFIRST'
     if (_dataOrder == SPI_BITORDER_LSBFIRST) {
                       ^~~~~~~~~~~~~~~~~~~~~
                       SPI_CR1_LSBFIRST
.pio\libdeps\STM32F103RC_btt_512K\Adafruit_MAX31865\Adafruit_MAX31865.cpp:49:43: note: suggested alternative: 'SPI_CR1_LSBFIRST'
       Adafruit_SPIDevice(spi_cs, 1000000, SPI_BITORDER_MSBFIRST, SPI_MODE1);
                                           ^~~~~~~~~~~~~~~~~~~~~
                                           SPI_CR1_LSBFIRST
*** [.pio\build\STM32F103RC_btt_512K\lib7a7\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp.o] Error 1
*** [.pio\build\STM32F103RC_btt_512K\lib7a7\Adafruit BusIO_ID6214\Adafruit_BusIO_Register.cpp.o] Error 1
*** [.pio\build\STM32F103RC_btt_512K\lib65e\Adafruit_MAX31865\Adafruit_MAX31865.cpp.o] Error 1
*** [.pio\build\STM32F103RC_btt_512K\lib7a7\Adafruit BusIO_ID6214\Adafruit_SPIDevice.cpp.o] Error 1
FlyingT commented 4 years ago

Same, even the unchanged firmware cloned from this repo wont compile.

Error Code: https://pastebin.com/9KfUL7mW

FlyingT commented 4 years ago

Found a temporal workaround, comment out this: https://prnt.sc/slxnu1

soothsayer011 commented 4 years ago

Found a Fix, comment out this: https://prnt.sc/slxnu1

That doesn't seem like a permanent workaround. That repo was recently edited in that last ~21 hours. They may have introduced a change that broke something.

FlyingT commented 4 years ago

Found a Fix, comment out this: https://prnt.sc/slxnu1

That doesn't seem like a permanent workaround. That repo was recently edited in that last ~21 hours. They may have introduced a change that broke something.

Yeah, seems so

soothsayer011 commented 4 years ago

I do not recommend commenting out that dependency because it appears to be for the SPI/I2C communication for temperature sensors.

lastone2print commented 4 years ago

I was able to get it to compile by going to https://github.com/adafruit/Adafruit_MAX31865/releases and using 1.1.0. Using https://github.com/adafruit/Adafruit_MAX31865/archive/1.1.0.zip under Adafruit_MAX31865 in platformio.ini. Like this https://prnt.sc/slzal6. So it does seem the 1.2.0 broke something.

soothsayer011 commented 4 years ago

I was able to get it to compile by going to https://github.com/adafruit/Adafruit_MAX31865/releases and using 1.1.0. Using https://github.com/adafruit/Adafruit_MAX31865/archive/1.1.0.zip under Adafruit_MAX31865 in platformio.ini. Like this https://prnt.sc/slzal6. So it does seem the 1.2.0 broke something.

This worked for me.

soothsayer011 commented 4 years ago

This issue is being worked on currently by Adafruit. Its linked in the previous mention.

Xav-Pe commented 4 years ago

I was able to get it to compile by going to https://github.com/adafruit/Adafruit_MAX31865/releases and using 1.1.0. Using https://github.com/adafruit/Adafruit_MAX31865/archive/1.1.0.zip under Adafruit_MAX31865 in platformio.ini. Like this https://prnt.sc/slzal6. So it does seem the 1.2.0 broke something.

Worked for me too, thanks.

ENG-HadiSamour commented 4 years ago

I was able to get it to compile by going to https://github.com/adafruit/Adafruit_MAX31865/releases and using 1.1.0. Using https://github.com/adafruit/Adafruit_MAX31865/archive/1.1.0.zip under Adafruit_MAX31865 in platformio.ini. Like this https://prnt.sc/slzal6. So it does seem the 1.2.0 broke something.

I did that and I was able to compile I think the new update broke something.

Robasha commented 4 years ago

I made an account just so I could comment and say thank you so very much. This was my first time on Github, and my first time ever changing the firmware on my board and I was so confused.

rivermontoya commented 4 years ago

funny how I was flashing my firmware on my new Skr mini for the first time and this is a recent problem lol. I like the old Arduino way better but then again im using visual studio on MacOS and Arduino crashes if I resize the window...

ElectrikCirkuit commented 4 years ago

I am receiving the compile error even after changing the line @lastone2print mentions.

In platformio.ini, line 32 is set to Adafruit_MAX31865=https://github.com/adafruit/Adafruit_MAX31865/archive/1.1.0.zip, yet I'm still receiving: STM32F103RC_btt_512K FAILED

iMattmax commented 4 years ago

I am receiving the compile error even after changing the line @lastone2print mentions.

In platformio.ini, line 32 is set to Adafruit_MAX31865=https://github.com/adafruit/Adafruit_MAX31865/archive/1.1.0.zip, yet I'm still receiving: STM32F103RC_btt_512K FAILED

For me it is working with that change in platformio.ini, line 32

txt4nk commented 4 years ago

It is working great on the latest bugfix for me.

jinhong- commented 4 years ago

I am receiving the compile error even after changing the line @lastone2print mentions. In platformio.ini, line 32 is set to Adafruit_MAX31865=https://github.com/adafruit/Adafruit_MAX31865/archive/1.1.0.zip, yet I'm still receiving: STM32F103RC_btt_512K FAILED

For me it is working with that change in platformio.ini, line 32

I had the same issue as well. Try to clean your project after changing it. Or just delete and start again before running build

Alanprime commented 4 years ago

I know it's for a previous version this issue but I solved it by deleting adafruit files ( I wasn't going to use them anyway)

duncan-rtfm commented 4 years ago

Hi, I'm, sorry guys - but this is completely incomprehensible to me. I realise the readership is very knowledgeable, but I'm brand new to this and I don't understand anything you guys are saying.

I have the same compiler error, and I read that v1.1.0 is the one to use. But even though I followed the link, and have downloaded it - what do I do with it? Where do I put it? Do I have to make changes to configuration.h? And if so, what changes?

Sorry fellas - this is way beyond me...

Duncan

duncan-rtfm commented 4 years ago

AHA!@ Found it in platformio.ini. Changed the line to v1.1.0 and it compiles - no problem!

Yay!

sushionmyear commented 4 years ago

I was able to get it to compile by going to https://github.com/adafruit/Adafruit_MAX31865/releases and using 1.1.0. Using https://github.com/adafruit/Adafruit_MAX31865/archive/1.1.0.zip under Adafruit_MAX31865 in platformio.ini. Like this https://prnt.sc/slzal6. So it does seem the 1.2.0 broke something.

After struggling to get it to the compile part (lots of reading on here), I too got this error, and while my code looked slightly different than yours I copy pasted into the areas and it compiled. Thank you so much!