Merge remote-tracking branch 'origin/MK3' into MK3
This commit is contained in:
commit
84bdc6c0e6
7 changed files with 28702 additions and 20 deletions
|
@ -4,8 +4,14 @@
|
|||
#include "boards.h"
|
||||
#include "Configuration_prusa.h"
|
||||
|
||||
#define STR_HELPER(x) #x
|
||||
#define STR(x) STR_HELPER(x)
|
||||
|
||||
// Firmware version
|
||||
#define FW_version "3.0.12-RC2"
|
||||
#define FW_build 101
|
||||
#define FW_version_build FW_version " b" STR(FW_build)
|
||||
|
||||
|
||||
#define FW_PRUSA3D_MAGIC "PRUSA3DFW"
|
||||
#define FW_PRUSA3D_MAGIC_LEN 10
|
||||
|
|
|
@ -32,7 +32,8 @@
|
|||
|
||||
// Steps per unit {X,Y,Z,E}
|
||||
//#define DEFAULT_AXIS_STEPS_PER_UNIT {100,100,3200/8,140}
|
||||
#define DEFAULT_AXIS_STEPS_PER_UNIT {100,100,3200/8,280}
|
||||
//#define DEFAULT_AXIS_STEPS_PER_UNIT {100,100,3200/8,280}
|
||||
#define DEFAULT_AXIS_STEPS_PER_UNIT {100,100,3200/8,560}
|
||||
|
||||
// Endstop inverting
|
||||
const bool X_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
|
||||
|
@ -110,7 +111,7 @@ const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic o
|
|||
|
||||
#define TMC2130_USTEPS_XY 16 // microstep resolution for XY axes
|
||||
#define TMC2130_USTEPS_Z 16 // microstep resolution for Z axis
|
||||
#define TMC2130_USTEPS_E 32 // microstep resolution for E axis
|
||||
#define TMC2130_USTEPS_E 64 // microstep resolution for E axis
|
||||
#define TMC2130_INTPOL_XY 1 // extrapolate 256 for XY axes
|
||||
#define TMC2130_INTPOL_Z 1 // extrapolate 256 for Z axis
|
||||
#define TMC2130_INTPOL_E 1 // extrapolate 256 for E axis
|
||||
|
@ -160,8 +161,8 @@ const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic o
|
|||
#define TMC2130_SG_DELTA 128 // stallguard delta [usteps] (minimum usteps before stallguard readed - SW homing)
|
||||
|
||||
//new settings is possible for vsense = 1, running current value > 31 set vsense to zero and shift both currents by 1 bit right (Z axis only)
|
||||
#define TMC2130_CURRENTS_H {3, 3, 5, 8} // default holding currents for all axes
|
||||
#define TMC2130_CURRENTS_R {13, 20, 20, 22} // default running currents for all axes
|
||||
#define TMC2130_CURRENTS_H {3, 3, 5, 12} // default holding currents for all axes
|
||||
#define TMC2130_CURRENTS_R {13, 20, 20, 28} // default running currents for all axes
|
||||
|
||||
//#define TMC2130_DEBUG
|
||||
//#define TMC2130_DEBUG_WR
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#ifndef DCODES_H
|
||||
#define DCODES_H
|
||||
|
||||
extern void dcode_0();
|
||||
extern void dcode_1();
|
||||
extern void dcode_2();
|
||||
extern void dcode_3();
|
||||
extern void dcode_4();
|
||||
|
||||
|
||||
#endif //DCODES_H
|
||||
#ifndef DCODES_H
|
||||
#define DCODES_H
|
||||
|
||||
extern void dcode_0();
|
||||
extern void dcode_1();
|
||||
extern void dcode_2();
|
||||
extern void dcode_3();
|
||||
extern void dcode_4();
|
||||
|
||||
|
||||
#endif //DCODES_H
|
||||
|
|
14336
Firmware/builds/1_75mm_MK3-EINY04-E3Dv6full/Firmware.ino.rambo_b100.hex
Normal file
14336
Firmware/builds/1_75mm_MK3-EINY04-E3Dv6full/Firmware.ino.rambo_b100.hex
Normal file
File diff suppressed because it is too large
Load diff
14336
Firmware/builds/1_75mm_MK3-EINY04-E3Dv6full/Firmware.ino.rambo_b101.hex
Normal file
14336
Firmware/builds/1_75mm_MK3-EINY04-E3Dv6full/Firmware.ino.rambo_b101.hex
Normal file
File diff suppressed because it is too large
Load diff
|
@ -212,8 +212,8 @@ uint8_t tmc2130_sample_diag()
|
|||
uint8_t mask = 0;
|
||||
if (READ(X_TMC2130_DIAG)) mask |= X_AXIS_MASK;
|
||||
if (READ(Y_TMC2130_DIAG)) mask |= Y_AXIS_MASK;
|
||||
if (READ(Z_TMC2130_DIAG)) mask |= Z_AXIS_MASK;
|
||||
if (READ(E0_TMC2130_DIAG)) mask |= E_AXIS_MASK;
|
||||
// if (READ(Z_TMC2130_DIAG)) mask |= Z_AXIS_MASK;
|
||||
// if (READ(E0_TMC2130_DIAG)) mask |= E_AXIS_MASK;
|
||||
return mask;
|
||||
}
|
||||
|
||||
|
@ -222,7 +222,8 @@ void tmc2130_st_isr(uint8_t last_step_mask)
|
|||
if (tmc2130_mode == TMC2130_MODE_SILENT) return;
|
||||
bool crash = false;
|
||||
uint8_t diag_mask = tmc2130_sample_diag();
|
||||
for (uint8_t axis = X_AXIS; axis <= E_AXIS; axis++)
|
||||
// for (uint8_t axis = X_AXIS; axis <= E_AXIS; axis++)
|
||||
for (uint8_t axis = X_AXIS; axis <= Y_AXIS; axis++)
|
||||
{
|
||||
uint8_t mask = (X_AXIS_MASK << axis);
|
||||
if (diag_mask & mask) tmc2130_sg_err[axis]++;
|
||||
|
|
|
@ -1077,13 +1077,15 @@ static void lcd_support_menu()
|
|||
|
||||
MENU_ITEM(back, MSG_MAIN, lcd_main_menu);
|
||||
|
||||
MENU_ITEM(back, PSTR("Firmware:"), lcd_main_menu);
|
||||
MENU_ITEM(back, PSTR(" " FW_version_build), lcd_main_menu);
|
||||
// Ideally this block would be optimized out by the compiler.
|
||||
const uint8_t fw_string_len = strlen_P(FW_VERSION_STR_P());
|
||||
/* const uint8_t fw_string_len = strlen_P(FW_VERSION_STR_P());
|
||||
if (fw_string_len < 6) {
|
||||
MENU_ITEM(back, PSTR(MSG_FW_VERSION " - " FW_version), lcd_main_menu);
|
||||
} else {
|
||||
MENU_ITEM(back, PSTR("FW - " FW_version), lcd_main_menu);
|
||||
}
|
||||
}*/
|
||||
|
||||
MENU_ITEM(back, MSG_PRUSA3D, lcd_main_menu);
|
||||
MENU_ITEM(back, MSG_PRUSA3D_FORUM, lcd_main_menu);
|
||||
|
|
Loading…
Reference in a new issue