MK4duo & 8 BIT errore di compilazione October 28, 2016 11:22AM |
Registered: 10 years ago Posts: 6,409 |
sketch\src\temperature\temperature.cpp: In function 'Temperature::manage_temp_controller() [clone .part.4]': sketch\src\temperature\temperature.cpp:1129:1: error: unable to find a register to spill in class 'POINTER_REGS' } ^ sketch\src\temperature\temperature.cpp:1129:1: error: this is the insn: (insn 53 51 55 3 (set (regF 76 [ D.2326 ]) (memF (post_inc:HI (reg:HI 103 [ ivtmp.129 ])) [12 MEM[base: _94, offset: 0B]+0 S4 A8])) sketch\src\temperature\temperature.cpp:716 100 {*movsf} (expr_list:REG_INC (reg:HI 103 [ ivtmp.129 ]) (nil))) sketch\src\temperature\temperature.cpp:1129: confused by earlier errors, bailing out lto-wrapper: C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc returned 1 exit status c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: lto-wrapper failed collect2.exe: error: ld returned 1 exit status exit status 1 Errore durante la compilazione per la scheda Arduino/Genuino Mega or Mega 2560.
pid_error[HOTEND_INDEX] = target_temperature[HOTEND_INDEX] - current_temperature[HOTEND_INDEX];
float current_temp; switch (HOTEND_INDEX) { case 0: current_temp = current_temperature[0]; break; #if HOTENDS > 1 case 1: current_temp = current_temperature[1]; break; #if HOTENDS > 2 case 2: current_temp = current_temperature[2]; break; #if HOTENDS > 3 case 3: current_temp = current_temperature[3]; break; #endif // HOTENDS > 3 #endif // HOTENDS > 2 #endif // HOTENDS > 1 }
pid_error[HOTEND_INDEX] = target_temperature[HOTEND_INDEX] - current_temp;
dTerm[HOTEND_INDEX] = K2 * PID_PARAM(Kd, HOTEND_INDEX) * (current_temperature[HOTEND_INDEX] - temp_dState[HOTEND_INDEX]) + K1 * dTerm[HOTEND_INDEX];
Re: MK4duo & 8 BIT errore di compilazione October 29, 2016 06:39AM |
Registered: 7 years ago Posts: 451 |
Quote
current_temp = current_temperature[HOTEND_INDEX]; //prova qsecofr
switch (HOTEND_INDEX) {
case 0:
current_temp = current_temperature[0]; break;
#if HOTENDS > 1
case 1:
current_temp = current_temperature[1]; break;
#if HOTENDS > 2
case 2:
current_temp = current_temperature[2]; break;
#if HOTENDS > 3
case 3:
current_temp = current_temperature[3]; break;
#endif // HOTENDS > 3
#endif // HOTENDS > 2
#endif // HOTENDS > 1
}
#if ENABLED(PIDTEMP)
#if DISABLED(PID_OPENLOOP)
pid_error[HOTEND_INDEX] = target_temperature[HOTEND_INDEX] - current_temperature[HOTEND_INDEX]; //prova qsecofr
//pid_error[HOTEND_INDEX] = target_temperature[HOTEND_INDEX] - current_temp;
Re: MK4duo & 8 BIT errore di compilazione October 29, 2016 07:27AM |
Registered: 10 years ago Posts: 6,409 |
Re: MK4duo & 8 BIT errore di compilazione October 29, 2016 11:21AM |
Registered: 7 years ago Posts: 451 |
Re: MK4duo & 8 BIT errore di compilazione October 29, 2016 01:19PM |
Registered: 7 years ago Posts: 505 |
Re: MK4duo & 8 BIT errore di compilazione October 29, 2016 01:44PM |
Registered: 10 years ago Posts: 6,409 |
Re: MK4duo & 8 BIT errore di compilazione October 30, 2016 08:20AM |
Registered: 7 years ago Posts: 505 |
sketch\src\lcd\ultralcd.cpp: In function 'void lcd_control_temperature_preheat_abs_settings_menu()': sketch\src\lcd\ultralcd.cpp:1895:17: error: redefinition of 'void lcd_control_temperature_preheat_abs_settings_menu()' static void lcd_control_temperature_preheat_abs_settings_menu() { _lcd_control_temperature_preheat_settings_menu(2); } ^ sketch\src\lcd\ultralcd.cpp:1888:17: note: 'void lcd_control_temperature_preheat_abs_settings_menu()' previously defined here static void lcd_control_temperature_preheat_abs_settings_menu() { _lcd_control_temperature_preheat_settings_menu(1); } ^ exit status 1 Errore durante la compilazione per la scheda Arduino/Genuino Mega or Mega 2560.
Re: MK4duo & 8 BIT errore di compilazione October 30, 2016 08:25AM |
Registered: 10 years ago Posts: 6,409 |
Re: MK4duo & 8 BIT errore di compilazione October 30, 2016 08:44AM |
Registered: 7 years ago Posts: 505 |
Re: MK4duo & 8 BIT errore di compilazione October 30, 2016 07:05PM |
Registered: 7 years ago Posts: 505 |
n file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0, from sketch\src\../base.h:26, from sketch\src\MK_Main.cpp:31: sketch\src\MK_Main.cpp: In function 'void print_bed_level(const char*)': sketch\src\../src/HAL_AVR/communication.h:59:60: error: initializer fails to determine size of '__c' #define SERIAL_PGM(message) serialprintPGM(PSTR(message)) ^ sketch\src\../src/HAL_AVR/communication.h:61:45: note: in expansion of macro 'SERIAL_PGM' #define SERIAL_S(srt) SERIAL_PGM(srt) ^ sketch\src\MK_Main.cpp:2193:5: note: in expansion of macro 'SERIAL_S' SERIAL_S(prefix); ^ sketch\src\../src/HAL_AVR/communication.h:59:60: error: array must be initialized with a brace-enclosed initializer #define SERIAL_PGM(message) serialprintPGM(PSTR(message)) ^ sketch\src\../src/HAL_AVR/communication.h:61:45: note: in expansion of macro 'SERIAL_PGM' #define SERIAL_S(srt) SERIAL_PGM(srt) ^ sketch\src\MK_Main.cpp:2193:5: note: in expansion of macro 'SERIAL_S' SERIAL_S(prefix); ^ sketch\src\../src/HAL_AVR/communication.h:59:60: error: initializer fails to determine size of '__c' #define SERIAL_PGM(message) serialprintPGM(PSTR(message)) ^ sketch\src\../src/HAL_AVR/communication.h:61:45: note: in expansion of macro 'SERIAL_PGM' #define SERIAL_S(srt) SERIAL_PGM(srt) ^ sketch\src\MK_Main.cpp:2195:5: note: in expansion of macro 'SERIAL_S' SERIAL_S(prefix); ^ sketch\src\../src/HAL_AVR/communication.h:59:60: error: array must be initialized with a brace-enclosed initializer #define SERIAL_PGM(message) serialprintPGM(PSTR(message)) ^ sketch\src\../src/HAL_AVR/communication.h:61:45: note: in expansion of macro 'SERIAL_PGM' #define SERIAL_S(srt) SERIAL_PGM(srt) ^ sketch\src\MK_Main.cpp:2195:5: note: in expansion of macro 'SERIAL_S' SERIAL_S(prefix); ^ sketch\src\../src/HAL_AVR/communication.h:59:60: error: initializer fails to determine size of '__c' #define SERIAL_PGM(message) serialprintPGM(PSTR(message)) ^ sketch\src\../src/HAL_AVR/communication.h:61:45: note: in expansion of macro 'SERIAL_PGM' #define SERIAL_S(srt) SERIAL_PGM(srt) ^ sketch\src\MK_Main.cpp:2203:7: note: in expansion of macro 'SERIAL_S' SERIAL_S(prefix); ^ sketch\src\../src/HAL_AVR/communication.h:59:60: error: array must be initialized with a brace-enclosed initializer #define SERIAL_PGM(message) serialprintPGM(PSTR(message)) ^ sketch\src\../src/HAL_AVR/communication.h:61:45: note: in expansion of macro 'SERIAL_PGM' #define SERIAL_S(srt) SERIAL_PGM(srt) ^ sketch\src\MK_Main.cpp:2203:7: note: in expansion of macro 'SERIAL_S' SERIAL_S(prefix); ^ exit status 1 Errore durante la compilazione per la scheda Arduino/Genuino Mega or Mega 2560.