开源改变世界!!

[BUG] 在 Adafruit_I2CDevice::read 中构建失败 #274

推推 grbl 2年前 (2023-02-06) 126次浏览
关闭
scudderfish 打开了这个问题 2020 年 5 月 31 日 · 3条评论
关闭

[BUG] 在 Adafruit_I2CDevice::read 中构建失败#274

scudderfish 打开了这个问题 2020 年 5 月 31 日 · 3条评论

评论

[BUG] 在 Adafruit_I2CDevice::read 中构建失败 #274

描述

重现步骤

  1. git 克隆https://github.com/bigtreetech/BIGTREETECH-SKR-mini-E3.git
  2. cd BIGTREETECH-SKR-mini-E3/firmware/V1.2/Marlin-2.0.x-SKR-Mini-E3-V1.2
  3. 皮奥跑

预期行为
构建完成并生成 firmware.bin

实际行为
构建失败

.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 /home/dgs/.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:
/home/dgs/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/Wire/utility/WireBase.h:101:11: note: candidate: uint8 WireBase::requestFrom(uint8, int)
     uint8 requestFrom(uint8, int);
           ^~~~~~~~~~~
/home/dgs/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/Wire/utility/WireBase.h:101:11: note:   candidate expects 2 arguments, 3 provided
/home/dgs/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/Wire/utility/WireBase.h:106:11: note: candidate: uint8 WireBase::requestFrom(int, int)
     uint8 requestFrom(int, int);
           ^~~~~~~~~~~
/home/dgs/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/Wire/utility/WireBase.h:106:11: note:   candidate expects 2 arguments, 3 provided
Archiving .pio/build/STM32F103RC_btt_512K/lib38f/libSailfishLCD.a
.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
[BUG] 在 Adafruit_I2CDevice::read 中构建失败 #274

我也有这个错误

[BUG] 在 Adafruit_I2CDevice::read 中构建失败 #274

香草马林鱼错误修复工作正常。您可以使用它来创建您的固件,或者您需要修改 adafruit 文件夹(在 marlin github 中搜索 adafruit .. 有几个关于它的线程)。

[BUG] 在 Adafruit_I2CDevice::read 中构建失败 #274
作者

这由提交b5f9126 修复