From 2dd2a9ef9dea6e3c34bb1036e406ab973d8348b7 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 13 Mar 2026 11:45:44 +0000 Subject: [PATCH] Fix: Configure ADXL345 as separate device (not in cartographer section) The 'accel_chip' option is not valid in [cartographer] section. ADXL345 must be configured as a separate [adxl345] device that communicates via the Cartographer MCU. Correct configuration: - [adxl345] with cs_pin: cartographer:PA3 and spi_bus: spi1 - [resonance_tester] with accel_chip: adxl345 - [cartographer] does NOT include accel_chip This fixes: 'Option accel_chip is not valid in section cartographer' --- optimized_user_settings.cfg | 10 +++++++--- user_settings_clean.cfg | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/optimized_user_settings.cfg b/optimized_user_settings.cfg index 4ecc04d..8d53a42 100644 --- a/optimized_user_settings.cfg +++ b/optimized_user_settings.cfg @@ -24,7 +24,6 @@ mcu: cartographer x_offset: 0 y_offset: 22 verbose: no -accel_chip: adxl345 [bed_mesh] zero_reference_position: 165, 165 @@ -42,10 +41,15 @@ sensor_mcu: cartographer min_temp: 5 max_temp: 105 -# ADXL345 is integrated in Cartographer - configured via accel_chip in [cartographer] section +# ADXL345 is integrated in Cartographer probe +# Configure as separate device on Cartographer MCU +[adxl345] +cs_pin: cartographer:PA3 +spi_bus: spi1 +axes_map: x, y, z [resonance_tester] -accel_chip: cartographer +accel_chip: adxl345 probe_points: 165, 165, 20 165, 165, 20 diff --git a/user_settings_clean.cfg b/user_settings_clean.cfg index 87a319c..eb197e3 100644 --- a/user_settings_clean.cfg +++ b/user_settings_clean.cfg @@ -24,7 +24,6 @@ mcu: cartographer x_offset: 0 y_offset: 22 verbose: no -accel_chip: adxl345 [bed_mesh] zero_reference_position: 165, 165 @@ -42,10 +41,15 @@ sensor_mcu: cartographer min_temp: 5 max_temp: 105 -# ADXL345 is integrated in Cartographer - configured via accel_chip in [cartographer] section +# ADXL345 is integrated in Cartographer probe +# Configure as separate device on Cartographer MCU +[adxl345] +cs_pin: cartographer:PA3 +spi_bus: spi1 +axes_map: x, y, z [resonance_tester] -accel_chip: cartographer +accel_chip: adxl345 probe_points: 165, 165, 20 165, 165, 20