hii i am getting this error while compiling can anyone can help me...
Code: Select all
else if(subMenuPage==2){
lcd.setCursor(0,0);lcd.print("CHARGING CURRENT");
if(setMenuPage==1){lcd.setCursor(0,1);lcd.print(" >");}
else{lcd.setCursor(0,1);lcd.print("= ");}
lcd.setCursor(2,1);lcd.print(currentCharging,2);lcd.print("A");
lcd.print(" ");
//SET MENU - FLOATTYPE
if(setMenuPage==0){floatTemp = currentCharging;}
else{
if(digitalRead(buttonBack)==1){while(digitalRead(buttonBack)==1){}currentCharging = floatTemp;setMenuPage=0;}
if(digitalRead(buttonSelect)==1){while(digitalRead(buttonSelect)==1){}saveSettings();setMenuPage=0;}
currentMenuSetMillis = millis();
if(digitalRead(buttonRight)==1){ //Right button press (increments setting values)
while(digitalRead(buttonRight)==1){
if(millis()-currentMenuSetMillis>longPressTime){ //Long Press
currentCharging += 1.00; //Increment by 1
currentCharging = constrain(currentCharging,0.0,cOutSystemMax); //Limit settings values to a range
lcd.setCursor(2,1);lcd.print(currentCharging,2);delay(longPressInterval); //Display settings data
}
else{ //Short Press
currentCharging += 0.01; //Increment by 0.01
currentCharging = constrain(currentCharging,0.0,cOutSystemMax); //Limit settings values to a range
lcd.setCursor(2,1);lcd.print(currentCharging,2);delay(shortPressInterval); //Display settings data
}
lcd.print("A "); //Display unit
}
}
else if(digitalRead(buttonLeft)==1){ //Left button press (decrements setting values)
while(digitalRead(buttonLeft)==1){
if(millis()-currentMenuSetMillis>longPressTime){ //Long Press
currentCharging -= 1.00; //Increment by 1
currentCharging = constrain(currentCharging,0.0,cOutSystemMax); //Limit settings values to a range
lcd.setCursor(2,1);lcd.print(currentCharging,2);delay(longPressInterval); //Display settings data
}
else{ //Short Press
currentCharging -= 0.01; //Increment by 0.01
currentCharging = constrain(currentCharging,0.0,cOutSystemMax); //Limit settings values to a range
lcd.setCursor(2,1);lcd.print(currentCharging,2);delay(shortPressInterval); //Display settings data
}
lcd.print("A "); //Display unit
}
}
}
}
Error:
...8_LCD_Menu:377:1: error: insn does not satisfy its constraints:
377 | }
| ^
(insn 11 2651 1185 127 (set (reg:SF 19 f0 [orig:127 _95 ] [127])
(mem/u/c:SF (symbol_ref/u:SI ("*.LC357") [flags 0x2]) [0 S4 A32])) "C:\Users\chara\Downloads\CODE_MPPT_ESP32_V1.2.1-20240819T055256Z-001\CODE_MPPT_ESP32_V1.2.1\8_LCD_Menu.ino":205:33 49 {movsf_internal}
(expr_list:REG_EQUAL (const_double:SF 0.0 [0x0.0p+0])
(nil)))
during RTL pass: postreload
C:\Users\chara\Downloads\CODE_MPPT_ESP32_V1.2.1-20240819T055256Z-001\CODE_MPPT_ESP32_V1.2.1\8_LCD_Menu.ino:377:1: internal compiler error: in extract_constrain_insn, at recog.cc:2692
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <
https://gcc.gnu.org/bugs/> for instructions.
exit status 1
insn does not satisfy its constraints: ...'''
- Error image
- WhatsApp Image 2024-08-21 at 2.14.12 PM.jpeg (63.14 KiB) Viewed 1613 times