I’m not sure if this is the correct place to post this. Opening a github issue does not seem to be possible.
This minimal config does not work;
[mcu]
serial:/dev/serial/by-id/usb-Klipper_rp2040_...
[printer]
kinematics:none
max_accel:1
max_velocity:1
[temperature_sensor test]
sensor_type:MAX31865
sensor_pin:gpio1
spi_bus:spi0a
rtd_nominal_r:1000
rtd_reference_r:2200
rtd_num_of_wires:4
The problem is that for this configuration min_value
and max_value
are not set for the max38165 initialization on the rp2040 (both set to 0). This triggers a mcu shutdown because the reported value by the max31865 is bigger than max_value.
Commenting out the min_value and max_value checks in src/thermocouple.c
fixed the problem. But I guess the issue should be fixed somewhere in the klippy code.
Edit:
This is the relevant code in src/thermocouple.c
;
/* check the result and stop if below or above allowed range */
if (fault || value < spi->min_value || value > spi->max_value) {
spi->invalid_count++;
if (spi->invalid_count < spi->max_invalid)
return;
try_shutdown("Thermocouple reader fault");
}
The error message is not really helpful for identifying the problem. I had to use the source code to find out what was happening.