From eafd62308e90e98f16d3bf1725ba62eb1e0b2f2c Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 8 Sep 2018 20:41:21 -0500 Subject: [PATCH] Use TMC2208Stepper v0.2.5 (#11714) --- Marlin/src/inc/SanityCheck.h | 4 ++-- Marlin/src/lcd/ultralcd.cpp | 6 +++--- platformio.ini | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Marlin/src/inc/SanityCheck.h b/Marlin/src/inc/SanityCheck.h index 5296824783..6f2a674f22 100644 --- a/Marlin/src/inc/SanityCheck.h +++ b/Marlin/src/inc/SanityCheck.h @@ -1599,7 +1599,7 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE, /** * TMC2208 software UART is only supported on AVR */ -#if HAS_DRIVER(TMC2208) && !defined(__AVR__) && !( \ +#if HAS_DRIVER(TMC2208) && !defined(__AVR__) && !defined(TARGET_LPC1768) && !( \ defined(X_HARDWARE_SERIAL ) \ || defined(X2_HARDWARE_SERIAL) \ || defined(Y_HARDWARE_SERIAL ) \ @@ -1611,7 +1611,7 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE, || defined(E2_HARDWARE_SERIAL) \ || defined(E3_HARDWARE_SERIAL) \ || defined(E4_HARDWARE_SERIAL) ) - #error "TMC2208 Software Serial is supported only on AVR platforms." + #error "TMC2208 Software Serial is supported only on AVR and LPC1768 platforms." #endif #if ENABLED(SENSORLESS_HOMING) diff --git a/Marlin/src/lcd/ultralcd.cpp b/Marlin/src/lcd/ultralcd.cpp index 66bfbd958a..a25b2d4c64 100644 --- a/Marlin/src/lcd/ultralcd.cpp +++ b/Marlin/src/lcd/ultralcd.cpp @@ -1034,9 +1034,9 @@ void lcd_quick_feedback(const bool clear_buttons) { #endif // HAS_DEBUG_MENU - /** - * IDEX submenu - */ + /** + * IDEX submenu + */ #if ENABLED(DUAL_X_CARRIAGE) static void IDEX_menu() { START_MENU(); diff --git a/platformio.ini b/platformio.ini index 85d43abb91..3d6dbeadc7 100644 --- a/platformio.ini +++ b/platformio.ini @@ -32,7 +32,7 @@ lib_deps = https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip LiquidCrystal@1.3.4 TMC2130Stepper - https://github.com/teemuatlut/TMC2208Stepper/archive/v0.2.3.zip + https://github.com/teemuatlut/TMC2208Stepper/archive/v0.2.5.zip Adafruit NeoPixel@1.1.3 https://github.com/lincomatic/LiquidTWI2/archive/30aa480.zip https://github.com/ameyer/Arduino-L6470/archive/master.zip @@ -163,7 +163,6 @@ lib_extra_dirs = frameworks lib_deps = CMSIS-LPC1768 https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip TMC2130Stepper@>=2.2.1 - TMC2208Stepper@=0.2.1 extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py, Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py src_filter = ${common.default_src_filter} + monitor_speed = 250000