Hello, I have a problem with trying to connect MAX31865 that works over SPI to BTT SKR 1.4 turbo in Marlin firmware.
I am using a PT100 temperature sensor on the hotend, and since I have very inaccurate temperature reading, I wanted to add MAX31865.
In the Configuration file, I choose -5 sensor and define the CS pin in the board .h file. After that, I got an error that there is no Adafruit_MAX31865 library. After installing it and adding to the platformio.ini file it was reporting error because of missing include file: WProgram.h.
I found somewhere that this is file is the same as Arduino.h so I switched that, and also there was a problem with the SPI mode. As suggested I changed it to SPI_MODE3 in Adafruit_MAX31865.cpp.
After all these changes, I am now able to build the code, but now I can see only Marlin logo on the screen. The printer is not accessible over UART a few seconds after it is turned on, and there is no possibility to access the SD card over USB.
I am still able to flash the board by loading the firmware on the SD card. I tried to disable display since it is also using SPI communication, but there was any effect on this problem.
I assume that there is some problem with SPI communication. Does anyone have some suggestions on what can I try to overcome this problem? Is there support for MAX31865 on LPC1769?
Thank you.
I am using a PT100 temperature sensor on the hotend, and since I have very inaccurate temperature reading, I wanted to add MAX31865.
In the Configuration file, I choose -5 sensor and define the CS pin in the board .h file. After that, I got an error that there is no Adafruit_MAX31865 library. After installing it and adding to the platformio.ini file it was reporting error because of missing include file: WProgram.h.
I found somewhere that this is file is the same as Arduino.h so I switched that, and also there was a problem with the SPI mode. As suggested I changed it to SPI_MODE3 in Adafruit_MAX31865.cpp.
After all these changes, I am now able to build the code, but now I can see only Marlin logo on the screen. The printer is not accessible over UART a few seconds after it is turned on, and there is no possibility to access the SD card over USB.
I am still able to flash the board by loading the firmware on the SD card. I tried to disable display since it is also using SPI communication, but there was any effect on this problem.
I assume that there is some problem with SPI communication. Does anyone have some suggestions on what can I try to overcome this problem? Is there support for MAX31865 on LPC1769?
Thank you.