diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 1dcb89389..d0a4122f4 100755 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -9124,8 +9124,8 @@ Sigma_Exit: #### End of D-Codes */ - /** @defgroup GCodes G-Code List - */ +/** @defgroup GCodes G-Code List +*/ // --------------------------------------------------- diff --git a/Firmware/eeprom.h b/Firmware/eeprom.h index f0544f395..7f431d247 100644 --- a/Firmware/eeprom.h +++ b/Firmware/eeprom.h @@ -1,3 +1,11 @@ + +/** + * @file + */ + /** \ingroup eeprom_table */ + //! _This is a EEPROM table of currently implemented in Prusa firmware (dynamically generated from doxygen)._ + + #ifndef EEPROM_H #define EEPROM_H @@ -26,6 +34,110 @@ typedef struct #ifdef __cplusplus static_assert(sizeof(Sheets) == EEPROM_SHEETS_SIZEOF, "Sizeof(Sheets) is not EEPROM_SHEETS_SIZEOF."); #endif +/** @defgroup eeprom_table EEPROM Table + * + + --------------------------------------------------------------------------------- + EEPROM 8-bit Empty value = 0xFFh 255 + + EEPROM 16-bit Empty value = 0xFFFFh 65535 + + --------------------------------------------------------------------------------- + How can you use the debug codes? + - Serial terminal like Putty. + - Octoprint does support D-codes + - _Pronterface_ does not support D-codes + + + --------------------------------------------------------------------------------- + + + +
EEPROM Table
Adress begin Bit/Type Name Valid values Default/FactoryResetDescription Debug code +
0x0FFFh 4095ucharEEPROM_SILENT 00h 0 ??? TMC Stealth mode off / miniRambo Power mode D3 Ax0fff C1 +
01h 1 TMC Stealth mode on / miniRambo Silent mode +
02h 2 Auto mode +
0x0FFEh 4094ucharEEPROM_LANG 00h 0 00h 0 English / LANG_ID_PRI D3 Ax0ffe C1 +
01h 1 Other language LANG_ID_SEC +
0x0FFCh 4092 uint16 EEPROM_BABYSTEP_X ??? ffh 255 Babystep for X axis _unsued_ D3 Ax0ffc C2 +
0x0FFAh 4090 uint16 EEPROM_BABYSTEP_Y ??? ffh 222 Babystep for Y axis _unsued_ D3 Ax0ffa C2 +
0x0FF8h 4088uint16EEPROM_BABYSTEP_Z ??? ffh 255 Babystep for Z axis _lagacy_ D3 Ax0ff8 C2 +
multiple values stored now in EEPROM_Sheets_base +
0x0FF7h 4087uint8EEPROM_CALIBRATION_STATUS 00h 0 ffh 255 Unknown D3 Ax0ff7 C1 +
01h 1 Calibrated +
E6h 230 needs Live Z adjustment +
F0h 240 needs Z calibration +
FAh 250 needs XYZ calibration +
FFh 255 Assbemled _default_ +
0x0FF5h 4085 uint16 EEPROM_BABYSTEP_Z0 ??? ??? Babystep for Z ??? D3 Ax0ff5 C2 +
0x0FF1h 4081 uint32 EEPROM_FILAMENTUSED ??? 00h 0 Filament used in meters D3 Ax0ff1 C4 +
0x0FEDh 4077 uint32 EEPROM_TOTALTIME ??? 00h 0 Total print time D3 Ax0fed C4 +
0x0FE5h 4069floatEEPROM_BED_CALIBRATION_CENTER ??? ??? ??? D3 Ax0fe5 C8 +
??? +
0x0FDDh 4061floatEEPROM_BED_CALIBRATION_VEC_X ??? ??? ??? D3 Ax0fdd C8 +
??? +
0x0FD5h 4053floatEEPROM_BED_CALIBRATION_VEC_Y ??? ??? ??? D3 Ax0fd5 C8 +
??? +
0x0FC5h 4037int16EEPROM_BED_CALIBRATION_Z_JITTER??? ??? ??? D3 Ax0fc5 C16 +
??? +
??? +
??? +
??? +
??? +
??? +
??? +
0x0FC4h 4036boolEEPROM_FARM_MODE 00h 0 00h 0 Prusa farm mode off D3 Ax0fc4 C1 +
ffh 255 Prusa farm mode on +
0x0FC1h 4033 int16 EEPROM_FARM_NUMBER ??? ff ff ffh Prusa farm number D3 Ax0fc1 C3 +
0x0FC0h 4032boolEEPROM_BED_CORRECTION_VALID 00h 0 00h 0 Bed correction invalid D3 Ax0fc0 C1 +
ffh 255 Bed correction valid +
0x0FBFh 4031charEEPROM_BED_CORRECTION_LEFT 00h FFh 00h 0 Bed manual correction left D3 Ax0fbf C1 +
At this moment limited to +-100um +
0x0FBEh 4030charEEPROM_BED_CORRECTION_RIGHT 00h FFh 00h 0 Bed manual correction right D3 Ax0fbe C1 +
At this moment limited to +-100um +
0x0FBDh 4029charEEPROM_BED_CORRECTION_FRONT 00h FFh 00h 0 Bed manual correction front D3 Ax0fbd C1 +
At this moment limited to +-100um +
0x0FBCh 4028charEEPROM_BED_CORRECTION_BACK 00h FFh 00h 0 Bed manual correction back D3 Ax0fbc C1 +
At this moment limited to +-100um +
0x0FBBh 4027boolEEPROM_TOSHIBA_FLASH_AIR_COMPATIBLITY 00h 0 00h 0 Toshiba Air off D3 Ax0fbb C1 +
ffh 255 Toshiba Air oon +
0x0FBAh 4026 uchar EEPROM_PRINT_FLAG ??? ??? _unsued_ D3 Ax0fba C1 +
0x0FB0h 4016int16EEPROM_PROBE_TEMP_SHIFT ??? ??? ??? D3 Ax0fb0 C10 +
??? +
??? +
??? +
??? +
0x0FAFh 4015boolEEPROM_TEMP_CAL_ACTIVE 00h 0 00h 0 PINDA Temp cal. inactive D3 Ax0faf C1 +
FFh 255 PINDA Temp cal. active +
0x0FA7h 4007uint32EEPROM_BOWDEN_LENGTH ??? ff 00 ff ffh Bowden length D3 Ax0fae C8 +
ff ff ff ffh +
0x0FA6h 4006uint8EEPROM_CALIBRATION_STATUS_PINDA 00h 0 ffh 255 PINDA Temp not calibrated D3 Ax0fa6 C1 +
01h 1 PINDA Temp calibrated +
0x0FA5h 4005uint8EEPROM_UVLO 00h 0 ffh 255 Power Panic flag inactive D3 Ax0fa5 C1 +
01h 1 Power Panic flag active +
02h 2 Power Panic flag ??? +
0x0F9Dh 3997floatEEPROM_UVLO_CURRENT_POSITION ??? ffh 255 Power Panic position D3 Ax0f9d C8 +
??? +
0x0F95h 3989charEEPROM_FILENAME ??? ffh 255 Power Panic Filename D3 Ax0f95 C8 +
??? +
??? +
??? +
??? +
??? +
??? +
??? +
0x0F91h 39851 unit32 EEPROM_FILE_POSITION ??? ff ff ff ffh Power Panic File Postion D3 Ax0f91 C4 +
0x0F8Dh 3981 float EEPROM_UVLO_CURRENT_POSITION_Z ??? ff ff ff ffh Power Panic Z Position D3 Ax0f8d C4 +
0x0F8Ch 3980???EEPROM_UVLO_UNUSED_001 ??? ffh 255 Power Panic UNUSED D3 Ax0f8c C1 +
0x0F8Bh 3979uint8EEPROM_UVLO_TARGET_BED ??? ffh 255 Power Panic Bed temperature D3 Ax0f8b C1 +
0x0F89h 3977uint16EEPROM_UVLO_FEEDRATE ??? ff ffh 65535 Power Panic Feedrate D3 Ax0f89 C2 +
0x0F88h 3976uint8EEPROM_UVLO_FAN_SPEED ??? ffh 255 Power Panic Fan speed D3 Ax0f88 C1 +
0x0F87h 3975uint8EEPROM_FAN_CHECK_ENABLED 00h 0 Fan Check disabled D3 Ax0f87 C1 +
01h 1 ffh 255 Fan Check enabled (exception ffh=01h) + + +
+*/ #define EEPROM_EMPTY_VALUE 0xFF #define EEPROM_EMPTY_VALUE16 0xFFFF @@ -230,6 +342,7 @@ static Sheets * const EEPROM_Sheets_base = (Sheets*)(EEPROM_SHEETS_BASE); // Magic string, indicating that the current or the previous firmware running was the Prusa3D firmware. #define EEPROM_FIRMWARE_PRUSA_MAGIC 0 + #ifdef __cplusplus #include "ConfigurationStore.h" static_assert(EEPROM_FIRMWARE_VERSION_END < 20, "Firmware version EEPROM address conflicts with EEPROM_M500_base"); @@ -256,3 +369,4 @@ void eeprom_switch_to_next_sheet(); #endif #endif // EEPROM_H +