--- Marlin/Configuration.h | 6 +++--- Marlin/Configuration_adv.h | 10 +++++----- Marlin/src/pins/stm32f1/pins_CREALITY_V4.h | 5 +++++ platformio.ini | 2 +- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index a449d61..27f5dc1 100755 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -874,7 +874,7 @@ //#define I_DRIVER_TYPE A4988 //#define J_DRIVER_TYPE A4988 //#define K_DRIVER_TYPE A4988 -#define E0_DRIVER_TYPE TMC2208_STANDALONE +#define E0_DRIVER_TYPE TMC2208 //#define E1_DRIVER_TYPE A4988 //#define E2_DRIVER_TYPE A4988 //#define E3_DRIVER_TYPE A4988 @@ -2794,8 +2794,8 @@ // // MarlinUI for Creality's DWIN display (and others) // -//#define DWIN_MARLINUI_PORTRAIT -#define DWIN_MARLINUI_LANDSCAPE +#define DWIN_MARLINUI_PORTRAIT +//#define DWIN_MARLINUI_LANDSCAPE // // Touch Screen Settings diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index cb447a0..448a2f6 100755 --- a/Marlin/Configuration_adv.h +++ b/Marlin/Configuration_adv.h @@ -2687,9 +2687,9 @@ #endif #if AXIS_IS_TMC(E0) - #define E0_CURRENT 800 + #define E0_CURRENT 706 #define E0_MICROSTEPS 16 - #define E0_RSENSE 0.11 + #define E0_RSENSE 0.15 #define E0_CHAIN_POS -1 //#define E0_INTERPOLATE true #endif @@ -2851,7 +2851,7 @@ * Define your own with: * { , , hysteresis_start[1..8] } */ - #define CHOPPER_TIMING CHOPPER_DEFAULT_12V // All axes (override below) + #define CHOPPER_TIMING CHOPPER_DEFAULT_24V // All axes (override below) //#define CHOPPER_TIMING_X CHOPPER_TIMING // For X Axes (override below) //#define CHOPPER_TIMING_X2 CHOPPER_TIMING_X //#define CHOPPER_TIMING_Y CHOPPER_TIMING // For Y Axes (override below) @@ -2880,7 +2880,7 @@ * M912 - Clear stepper driver overtemperature pre-warn condition flag. * M122 - Report driver parameters (Requires TMC_DEBUG) */ - //#define MONITOR_DRIVER_STATUS + #define MONITOR_DRIVER_STATUS #if ENABLED(MONITOR_DRIVER_STATUS) #define CURRENT_STEP_DOWN 50 // [mA] @@ -2983,7 +2983,7 @@ * Enable M122 debugging command for TMC stepper drivers. * M122 S0/1 will enable continuous reporting. */ - //#define TMC_DEBUG + #define TMC_DEBUG /** * You can set your own advanced settings by filling in predefined functions. diff --git a/Marlin/src/pins/stm32f1/pins_CREALITY_V4.h b/Marlin/src/pins/stm32f1/pins_CREALITY_V4.h index c60d4dc..1fa8d02 100755 --- a/Marlin/src/pins/stm32f1/pins_CREALITY_V4.h +++ b/Marlin/src/pins/stm32f1/pins_CREALITY_V4.h @@ -120,6 +120,11 @@ #endif #define E0_ENABLE_PIN X_ENABLE_PIN +#if HAS_TMC_UART + #define E0_SERIAL_TX_PIN PA3 + #define E0_SERIAL_RX_PIN PA3 + #define TMC_BAUD_RATE 19200 +#endif // // Release PB4 (Y_ENABLE_PIN) from JTAG NRST role // diff --git a/platformio.ini b/platformio.ini index 106e454..0e75a36 100755 --- a/platformio.ini +++ b/platformio.ini @@ -13,7 +13,7 @@ [platformio] src_dir = Marlin boards_dir = buildroot/share/PlatformIO/boards -default_envs = mega2560 +default_envs = STM32F103RET6_creality include_dir = Marlin extra_configs = ini/avr.ini -- 2.24.1.windows.2