New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Adafruit_MAX31865 @ 1.2.0 on stm32 is not compatible with marlin #18081
Comments
new user here. i wasted half a day yesterday trying to figure out what went wrong. relieved to hear it is a bug. I eventually got around it by commenting out this library as my setup did not actually require it. |
I believe this is just an issue with the STM32F1 HAL, but I didn't check all of them. The newer version uses a 3-argument flavor of |
I can confirm this behaviour :( Maybe it's a good idea to reference a specific version instead of master. Also old builds which worked no longer compile... |
I confirm this bug with Marlin bugfix downloaded today |
|
@qwewer0, this probably means your builds are using an older version from the library cache. |
Same problem when building for BOARD_MKS_ROBIN_NANO, problem exist on OSX, Linux and Windows 7. Changing MAX31865 from master to 1.1.0 in platformio.ini fixes this. |
A patch was added to Marlin bugfix for this 14 hours ago, you need the latest bugfix |
Where, in which portion of the Marlin code is the change made? I found a url reference to "https://github.com/adafruit/Adafruit_MAX31865/archive/master.zip" in the .piopkgmanger.json file under libdeps > STM32F103_btt_512K > Adafruit_MAX31865 > .pio. Changing that reference to "https://github.com/adafruit/Adafruit_MAX31865/archive/1.1.0.zip" does not correct the probelm; the reference to "master.zip" is restored when compilation is attempted. So, where is the correct location to make the change to "1.1.0.zip?" Thanks. |
@AudioKev it is only needed in older code. It has already been patched in bugfix a different way See https://github.com/MarlinFirmware/Marlin/pull/18089/files for details. |
Thanks @ellensp, switching to the bugfix 2.0.x build solved the problem. |
This is fixed on bugfix branch, but this is a workaround until the bugfix branch is merged into 2.0.x. See: MarlinFirmware#18081
I had a marlin config for skr mini e3 v1.2 it compiled fine until yesterday evening when I updated st stm32 version 7.1.1. Is there anyway to change to the older version? fresh copy of marlin (bugfix) does't compile either. |
In an Ender 3? |
The latest |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug Description
If your a new user and attempt to compile for a stm32 based board. platformio will grab the latest Adafruit_MAX31865 from https://github.com/adafruit/Adafruit_MAX31865/archive/master.zip
This is currently v1.2.0
This results in
|-- <Adafruit MAX31865 library> 1.2.0
| |-- <Adafruit BusIO> 1.2.6
| | |-- <Wire> 1.0
and Adafruit BusIO fails to compile with
Adafruit_SPIDevice.h:37:43: error: 'SPI_BITORDER_MSBFIRST' was not declared in this scope
My Configurations
configs.zip
Steps to Reproduce
Expected behavior:
It should compile
Actual behavior:
It does not compile
Additional Information
Full error log https://pastebin.com/366r7YWb
The quick fix is to change
Adafruit_MAX31865=https://github.com/adafruit/Adafruit_MAX31865/archive/master.zip
to
Adafruit_MAX31865=https://github.com/adafruit/Adafruit_MAX31865/archive/1.1.0.zip
this forces it to use 1.1.0. It then compiles.
Was discovered by a user celex on discord.
This may effect other platforms also... haven't had a chance to check.
The text was updated successfully, but these errors were encountered: