Skip to content

Commit 1a3541b

Browse files
committed
Update to Marlin 2.0.1
1 parent e49fa8c commit 1a3541b

File tree

453 files changed

+33105
-6843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

453 files changed

+33105
-6843
lines changed

.travis.yml

-84
This file was deleted.

Marlin/Configuration.h

+22-12
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@
498498
* heater. If your configuration is significantly different than this and you don't understand
499499
* the issues involved, don't use bed PID until someone else verifies that your hardware works.
500500
*/
501-
//#define PIDTEMPBED
501+
#define PIDTEMPBED
502502

503503
//#define BED_LIMIT_SWITCHING
504504

@@ -516,9 +516,9 @@
516516

517517
//120V 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
518518
//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
519-
#define DEFAULT_bedKp 10.00
520-
#define DEFAULT_bedKi .023
521-
#define DEFAULT_bedKd 305.4
519+
//#define DEFAULT_bedKp 10.00
520+
//#define DEFAULT_bedKi .023
521+
//#define DEFAULT_bedKd 305.4
522522

523523
//120V 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
524524
//from pidautotune
@@ -527,6 +527,10 @@
527527
//#define DEFAULT_bedKd 1675.16
528528

529529
// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
530+
#define DEFAULT_bedKp 50.71
531+
#define DEFAULT_bedKi 9.88
532+
#define DEFAULT_bedKd 173.43
533+
530534
#endif // PIDTEMPBED
531535

532536
// @section extruder
@@ -844,6 +848,12 @@
844848
*/
845849
//#define FIX_MOUNTED_PROBE
846850

851+
/**
852+
* Use the nozzle as the probe, as with a conductive
853+
* nozzle system or a piezo-electric smart effector.
854+
*/
855+
//#define NOZZLE_AS_PROBE
856+
847857
/**
848858
* Z Servo Probe, such as an endstop switch on a rotating arm.
849859
*/
@@ -910,10 +920,10 @@
910920
*
911921
* Specify a Probe position as { X, Y, Z }
912922
*/
913-
#define NOZZLE_TO_PROBE_OFFSET { -46.5, -7, -3.400 }
923+
#define NOZZLE_TO_PROBE_OFFSET { -46.5, 7, -3.4 }
914924

915925
// Certain types of probes need to stay away from edges
916-
#define MIN_PROBE_EDGE 20
926+
#define MIN_PROBE_EDGE 15
917927

918928
// X and Y axis travel speed (mm/m) between probes
919929
#define XY_PROBE_SPEED 8000
@@ -1209,7 +1219,7 @@
12091219

12101220
// Beyond the probed grid, continue the implied tilt?
12111221
// Default is to maintain the height of the nearest edge.
1212-
//#define EXTRAPOLATE_BEYOND_GRID
1222+
#define EXTRAPOLATE_BEYOND_GRID
12131223

12141224
//
12151225
// Experimental Subdivision of the grid by Catmull-Rom method.
@@ -1264,7 +1274,7 @@
12641274
#if ENABLED(LCD_BED_LEVELING)
12651275
#define MESH_EDIT_Z_STEP 0.025 // (mm) Step size while manually probing Z axis.
12661276
#define LCD_PROBE_Z_RANGE 4 // (mm) Z Range centered on Z_MIN_POS for LCD Z adjustment
1267-
//#define MESH_EDIT_MENU // Add a menu to edit mesh points
1277+
#define MESH_EDIT_MENU // Add a menu to edit mesh points
12681278
#endif
12691279

12701280
// Add a menu item to move between bed corners for manual bed adjustment
@@ -1624,7 +1634,7 @@
16241634
*
16251635
* Use CRC checks and retries on the SD communication.
16261636
*/
1627-
#define SD_CHECK_AND_RETRY
1637+
//#define SD_CHECK_AND_RETRY
16281638

16291639
/**
16301640
* LCD Menu Items
@@ -1758,7 +1768,7 @@
17581768

17591769
//
17601770
// Makeboard 3D Printer Parts 3D Printer Mini Display 1602 Mini Controller
1761-
// https://www.aliexpress.com/item/Micromake-Makeboard-3D-Printer-Parts-3D-Printer-Mini-Display-1602-Mini-Controller-Compatible-with-Ramps-1/32765887917.html
1771+
// https://www.aliexpress.com/item/32765887917.html
17621772
//
17631773
//#define MAKEBOARD_MINI_2_LINE_DISPLAY_1602
17641774

@@ -1932,7 +1942,7 @@
19321942

19331943
//
19341944
// Factory display for Creality CR-10
1935-
// https://www.aliexpress.com/item/Universal-LCD-12864-3D-Printer-Display-Screen-With-Encoder-For-CR-10-CR-7-Model/32833148327.html
1945+
// https://www.aliexpress.com/item/32833148327.html
19361946
//
19371947
// This is RAMPS-compatible using a single 10-pin connector.
19381948
// (For CR-10 owners who want to replace the Melzi Creality board but retain the display)
@@ -1950,7 +1960,7 @@
19501960

19511961
//
19521962
// AZSMZ 12864 LCD with SD
1953-
// https://www.aliexpress.com/store/product/3D-printer-smart-controller-SMART-RAMPS-OR-RAMPS-1-4-LCD-12864-LCD-control-panel-green/2179173_32213636460.html
1963+
// https://www.aliexpress.com/item/32837222770.html
19541964
//
19551965
//#define AZSMZ_12864
19561966

Marlin/Configuration_adv.h

+15-18
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@
626626
* differs, a mode set eeprom write will be completed at initialization.
627627
* Use the option below to force an eeprom write to a V3.1 probe regardless.
628628
*/
629-
//#define BLTOUCH_SET_5V_MODE
629+
#define BLTOUCH_SET_5V_MODE
630630

631631
/**
632632
* Safety: Activate if connecting a probe with an unknown voltage mode.
@@ -645,7 +645,7 @@
645645
//#define BLTOUCH_HS_MODE
646646

647647
// Safety: Enable voltage mode settings in the LCD menu.
648-
#define BLTOUCH_LCD_VOLTAGE_MENU
648+
//#define BLTOUCH_LCD_VOLTAGE_MENU
649649

650650
#endif // BLTOUCH
651651

@@ -656,7 +656,7 @@
656656
//#define Z_STEPPER_AUTO_ALIGN
657657
#if ENABLED(Z_STEPPER_AUTO_ALIGN)
658658
// Define probe X and Y positions for Z1, Z2 [, Z3]
659-
#define Z_STEPPER_ALIGN_XY { { 10, 290 }, { 150, 10 }, { 290, 290 } }
659+
#define Z_STEPPER_ALIGN_XY { { 10, 190 }, { 100, 10 }, { 190, 190 } }
660660

661661
// Provide Z stepper positions for more rapid convergence in bed alignment.
662662
// Currently requires triple stepper drivers.
@@ -916,7 +916,7 @@
916916
#if HAS_LCD_MENU
917917

918918
// Include a page of printer information in the LCD Main Menu
919-
//#define LCD_INFO_MENU
919+
#define LCD_INFO_MENU
920920
#if ENABLED(LCD_INFO_MENU)
921921
//#define LCD_PRINTER_INFO_IS_BOOTSCREEN // Show bootscreen(s) instead of Printer Info pages
922922
#endif
@@ -1053,9 +1053,9 @@
10531053
#define SDSORT_LIMIT 40 // Maximum number of sorted items (10-256). Costs 27 bytes each.
10541054
#define FOLDER_SORTING -1 // -1=above 0=none 1=below
10551055
#define SDSORT_GCODE false // Allow turning sorting on/off with LCD and M34 g-code.
1056-
#define SDSORT_USES_RAM true // Pre-allocate a static array for faster pre-sorting.
1056+
#define SDSORT_USES_RAM true // Pre-allocate a static array for faster pre-sorting.
10571057
#define SDSORT_USES_STACK false // Prefer the stack for pre-sorting to give back some SRAM. (Negated by next 2 options.)
1058-
#define SDSORT_CACHE_NAMES true // Keep sorted items in RAM longer for speedy performance. Most expensive option.
1058+
#define SDSORT_CACHE_NAMES true // Keep sorted items in RAM longer for speedy performance. Most expensive option.
10591059
#define SDSORT_DYNAMIC_RAM false // Use dynamic allocation (within SD menus). Least expensive option. Set SDSORT_LIMIT before use!
10601060
#define SDSORT_CACHE_VFATS 2 // Maximum number of 13-byte VFAT entries to use for sorting.
10611061
// Note: Only affects SCROLL_LONG_FILENAMES with SDSORT_CACHE_NAMES but not SDSORT_DYNAMIC_RAM.
@@ -1548,12 +1548,12 @@
15481548
/**
15491549
* Maximum stepping rate (in Hz) the stepper driver allows
15501550
* If undefined, defaults to 1MHz / (2 * MINIMUM_STEPPER_PULSE)
1551-
* 500000 : Maximum for A4988 stepper driver
1552-
* 400000 : Maximum for TMC2xxx stepper drivers
1553-
* 250000 : Maximum for DRV8825 stepper driver
1554-
* 200000 : Maximum for LV8729 stepper driver
1555-
* 150000 : Maximum for TB6600 stepper driver
1556-
* 15000 : Maximum for TB6560 stepper driver
1551+
* 5000000 : Maximum for TMC2xxx stepper drivers
1552+
* 1000000 : Maximum for LV8729 stepper driver
1553+
* 500000 : Maximum for A4988 stepper driver
1554+
* 250000 : Maximum for DRV8825 stepper driver
1555+
* 150000 : Maximum for TB6600 stepper driver
1556+
* 15000 : Maximum for TB6560 stepper driver
15571557
*
15581558
* Override the default value based on the driver type set in Configuration.h.
15591559
*/
@@ -1591,7 +1591,7 @@
15911591
// For debug-echo: 128 bytes for the optimal speed.
15921592
// Other output doesn't need to be that speedy.
15931593
// :[0, 2, 4, 8, 16, 32, 64, 128, 256]
1594-
#define TX_BUFFER_SIZE 0
1594+
#define TX_BUFFER_SIZE 32
15951595

15961596
// Host Receive Buffer Size
15971597
// Without XON/XOFF flow control (see SERIAL_XON_XOFF below) 32 bytes should be enough.
@@ -1751,8 +1751,8 @@
17511751
//#define ADVANCED_PAUSE_FANS_PAUSE // Turn off print-cooling fans while the machine is paused.
17521752

17531753
// Filament Unload does a Retract, Delay, and Purge first:
1754-
#define FILAMENT_UNLOAD_RETRACT_LENGTH 13 // (mm) Unload initial retract length.
1755-
#define FILAMENT_UNLOAD_DELAY 5000 // (ms) Delay for the filament to cool after retract.
1754+
#define FILAMENT_UNLOAD_PURGE_RETRACT 13 // (mm) Unload initial retract length.
1755+
#define FILAMENT_UNLOAD_PURGE_DELAY 5000 // (ms) Delay for the filament to cool after retract.
17561756
#define FILAMENT_UNLOAD_PURGE_LENGTH 8 // (mm) An unretract is done, then this length is purged.
17571757

17581758
#define PAUSE_PARK_NOZZLE_TIMEOUT 45 // (seconds) Time limit before the nozzle is turned off for safety.
@@ -2128,8 +2128,6 @@
21282128
*
21292129
* IMPROVE_HOMING_RELIABILITY tunes acceleration and jerk when
21302130
* homing and adds a guard period for endstop triggering.
2131-
*
2132-
* TMC2209 requires STEALTHCHOP enabled for SENSORLESS_HOMING
21332131
*/
21342132
//#define SENSORLESS_HOMING // StallGuard capable drivers only
21352133

@@ -2148,7 +2146,6 @@
21482146
#define Y_STALL_SENSITIVITY 8
21492147
//#define Z_STALL_SENSITIVITY 8
21502148
//#define SPI_ENDSTOPS // TMC2130 only
2151-
//#define HOME_USING_SPREADCYCLE
21522149
//#define IMPROVE_HOMING_RELIABILITY
21532150
#endif
21542151

Marlin/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ else ifeq ($(HARDWARE_MOTHERBOARD),1109)
188188
else ifeq ($(HARDWARE_MOTHERBOARD),1110)
189189
# zrib V2.0 control board (Chinese knock off RAMPS replica)
190190
else ifeq ($(HARDWARE_MOTHERBOARD),1111)
191-
# Bigtreetech or BIQU KFB2.0
191+
# BigTreeTech or BIQU KFB2.0
192192
else ifeq ($(HARDWARE_MOTHERBOARD),1112)
193193
# Felix 2.0+ Electronics Board (RAMPS like)
194194
else ifeq ($(HARDWARE_MOTHERBOARD),1113)

Marlin/Version.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* Marlin release version identifier
3030
*/
31-
#define SHORT_BUILD_VERSION "2.0.0"
31+
//#define SHORT_BUILD_VERSION "2.0.x"
3232

3333
/**
3434
* Verbose version identifier which should contain a reference to the location
@@ -41,12 +41,12 @@
4141
* here we define this default string as the date where the latest release
4242
* version was tagged.
4343
*/
44-
#define STRING_DISTRIBUTION_DATE "2019-12-07"
44+
//#define STRING_DISTRIBUTION_DATE "2019-07-10"
4545

4646
/**
4747
* Defines a generic printer name to be output to the LCD after booting Marlin.
4848
*/
49-
#define MACHINE_NAME "SKR Mini E3"
49+
//#define MACHINE_NAME "3D Printer"
5050

5151
/**
5252
* The SOURCE_CODE_URL is the location where users will find the Marlin Source

Marlin/src/HAL/HAL_AVR/inc/SanityCheck.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* Checks for FAST PWM
4040
*/
4141
#if ENABLED(FAST_PWM_FAN) && (ENABLED(USE_OCR2A_AS_TOP) && defined(TCCR2))
42-
#error "USE_OCR2A_AS_TOP does not apply to devices with a single output TIMER2"
42+
#error "USE_OCR2A_AS_TOP does not apply to devices with a single output TIMER2"
4343
#endif
4444

4545
/**

Marlin/src/HAL/HAL_AVR/pinsDebug.h

+7
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626

2727
#define NUMBER_PINS_TOTAL NUM_DIGITAL_PINS
2828

29+
#define AVR_ATmega2560_FAMILY_PLUS_70 MB(BQ_ZUM_MEGA_3D, MIGHTYBOARD_REVE, MINIRAMBO, SCOOVO_X9H)
30+
2931
#if AVR_AT90USB1286_FAMILY
32+
3033
// Working with Teensyduino extension so need to re-define some things
3134
#include "pinsDebug_Teensyduino.h"
3235
// Can't use the "digitalPinToPort" function from the Teensyduino type IDEs
@@ -35,19 +38,23 @@
3538
#define digitalPinToBitMask_DEBUG(p) digitalPinToBitMask(p)
3639
#define digitalPinToPort_DEBUG(p) digitalPinToPort_Teensy(p)
3740
#define GET_PINMODE(pin) (*portModeRegister(pin) & digitalPinToBitMask_DEBUG(pin))
41+
3842
#elif AVR_ATmega2560_FAMILY_PLUS_70 // So we can access/display all the pins on boards using more than 70
43+
3944
#include "pinsDebug_plus_70.h"
4045
#define digitalPinToTimer_DEBUG(p) digitalPinToTimer_plus_70(p)
4146
#define digitalPinToBitMask_DEBUG(p) digitalPinToBitMask_plus_70(p)
4247
#define digitalPinToPort_DEBUG(p) digitalPinToPort_plus_70(p)
4348
bool GET_PINMODE(int8_t pin) {return *portModeRegister(digitalPinToPort_DEBUG(pin)) & digitalPinToBitMask_DEBUG(pin); }
4449

4550
#else
51+
4652
#define digitalPinToTimer_DEBUG(p) digitalPinToTimer(p)
4753
#define digitalPinToBitMask_DEBUG(p) digitalPinToBitMask(p)
4854
#define digitalPinToPort_DEBUG(p) digitalPinToPort(p)
4955
bool GET_PINMODE(int8_t pin) {return *portModeRegister(digitalPinToPort_DEBUG(pin)) & digitalPinToBitMask_DEBUG(pin); }
5056
#define GET_ARRAY_PIN(p) pgm_read_byte(&pin_array[p].pin)
57+
5158
#endif
5259

5360
#define VALID_PIN(pin) (pin >= 0 && pin < NUM_DIGITAL_PINS ? 1 : 0)

Marlin/src/HAL/HAL_ESP32/HAL.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
#include "../../inc/MarlinConfigPre.h"
3232

33-
#if EITHER(EEPROM_SETTINGS, WEBSUPPORT)
33+
#if ENABLED(WEBSUPPORT)
3434
#include "spiffs.h"
3535
#endif
3636

@@ -83,7 +83,7 @@ void HAL_init() {
8383
}
8484

8585
void HAL_init_board() {
86-
#if EITHER(EEPROM_SETTINGS, WEBSUPPORT)
86+
#if ENABLED(WEBSUPPORT)
8787
spiffs_init();
8888
#endif
8989

0 commit comments

Comments
 (0)