Arduino IDE 2.0 beta no FQBN problem

Hello, I have downloaded the Arduino AVR Boards, am still getting the error message: Compilation error: Error: 2 UNKNOWN: no FQBN provided. Can anyone give me any suggestions? Thank you

Hello, I have already read this post, and have done everything. Thank you for your help.

if you open the Blink example, does it compile?
if you plug an UNO in and select its port, does it compile?

Hi, Yes it does run, without plugging it in.

can you share your code?
does it compile with the "old" IDE?

Hi, Yes it does compile with the old ide. Below is the code. It is for an incubator.

int LEDTEMP = 38;      // High temp at which the LED turns on
int ALARMTEMP = 38.2;   // Overheating temp     // Audible alarm for overheating
int HeaterPIN = 11;        // Relay for heater
int HumidityPIN = 9;     // Humidity PIN
int Humidity = 52;    // Humidity level

#include <Servo.h>
#include <Wire.h>
#include <HDC2080.h>
#include <LiquidCrystal.h>
// For Turner
Servo myservo;
int pos = 0;


#define ADDR 0x40
HDC2080 sensor(ADDR);
// For Temp

// Readings used for average
const int numReadings = 10;

// Set variables to zero
float avetemp = 0;                
float temp = 0;
float checkdelay = 0;

// For Humidity

// Set variables to zero
float aveHumid = 0;                
float Humid = 0;


 
void setup() {
  Serial.begin(115200); 
  
  
  sensor.begin();
  sensor.reset();
  // Configure Measurements
  sensor.setMeasurementMode(TEMP_AND_HUMID);  // Set measurements to temperature and humidity
  sensor.setRate(ONE_HZ);                     // Set measurement frequency to 1 Hz
  sensor.setTempRes(FOURTEEN_BIT);
  sensor.setHumidRes(FOURTEEN_BIT);
  //begin measuring
  sensor.triggerMeasurement();
  
  pinMode(11,OUTPUT);
  
  pinMode(9,OUTPUT);
 
digitalWrite(HeaterPIN, HIGH);

digitalWrite(HeaterPIN, HIGH);

//For Humidity
digitalWrite(HumidityPIN, HIGH);

digitalWrite(HumidityPIN, HIGH);


}
void loop() {
  for(int x = 0; x < 5; x++){
  Serial.print(".");
  delay(1000); 
  Serial.println("Temp Monitor Started");
  Serial.print("LED Test Started (5 Seconds) "); 
  Serial.println("Done");
  Serial.print("Realtime Temp: \t");
// Wait a few seconds between measurements.
  delay(100);
  temp = 0;

    Serial.print("Realtime Temp: \t");

  for (int x = 0; x < numReadings; x++){
  Serial.print(sensor.readTemp());
    delay(1000); // delay in between reads for stability  
  }    
  Serial.println();
  
  avetemp = temp / numReadings;                    // calculate the average
  Serial.print("Average Temp is ");
  Serial.println(avetemp);                         // send it to the computer as ASCII digits

     // Check if any reads failed and exit early (to try again).
  if (isnan(temp)) {
    Serial.println("Failed to read from HDC2080 sensor!");
    return;
  } 
// Turn ON Heater if cabinet is COLD
  if (avetemp>LEDTEMP) {
    digitalWrite(HeaterPIN, HIGH);
  } else {
    digitalWrite(HeaterPIN, LOW);
    
  Serial.println();
  Serial.println();



//Humidity



  if (aveHumid>Humidity) {
    digitalWrite(HumidityPIN, HIGH);
    digitalWrite(Humidity, LOW);
  } else {
    digitalWrite(HumidityPIN, LOW);
    digitalWrite(Humidity, HIGH);

  }
// LCD module connections (RS, E, D4, D5, D6, D7)
LiquidCrystal lcd(7, 6, 10, 8, 3, 2);
 
char temperature[] = "Temp = 00.0 C";
char humidity[]    = "RH   = 00.0 %";

  // set up the LCD's number of columns and rows
  lcd.begin(16, 2);

delay(1);           // wait 1s between readings
  // Read humidity
  byte Temp =("Temperature(C): "); 
  byte (sensor.readTemp());
  //Read temperature in degree Celsius
  byte Humid =("Humidity (%): "); 
  byte (sensor.readHumidity());
  
  // Check if any reads failed and exit early (to try again)
  if (isnan(Temp) || isnan(Humidity)) {
    lcd.clear();
    lcd.setCursor(5, 0);
    lcd.print("Error");
    return;
  }
 
  temperature[7]     = Temp / 10 + 48;
  temperature[8]     = Temp % 10 + 48;
  temperature[11]    = 223;
  humidity[7]        = Humidity / 10 + 48;
  humidity[8]        = Humidity % 10 + 48;
  lcd.setCursor(0, 0);
  lcd.print("Temp = ");
  lcd.setCursor(8, 0);
  lcd.print(sensor.readTemp());
  lcd.setCursor(14, 0);
  lcd.print("C");
  
  lcd.setCursor(0, 1);
  lcd.print("Hum  = ");
  lcd.setCursor(8, 1);
  lcd.print(sensor.readHumidity());
  lcd.setCursor(14, 1);
  lcd.print("%");

// For Turner
//for (pos = 0; pos <= 80; pos += 1) { // goes from 0 degrees to 80 degrees
// in steps of 1 degree
//    myservo.write(pos);              // tell servo to go to position in variable 'pos'
//    delay(5000);                       // waits 5000ms for the servo to reach the position
//    delay(12133333);
//  }
// for (pos = 80; pos >= 0; pos -= 1) { // goes from 80 degrees to 0 degrees
//    myservo.write(pos);              // tell servo to go to position in variable 'pos'
//    delay(5000);                       // waits 5000ms for the servo to reach the position
//    delay(12133333);
}
  }
}

I have just tried compiling again and got this error message:Compilation error: Error: 2 UNKNOWN: exit status 1

Hi @Hike. I'm going to ask you to post some additional information that might help us to identify the problem.

Please do this:

  1. Select File > Preferences from the Arduino IDE's menus.
  2. Check the box next to "Show verbose output during: compilation".
  3. Click the OK button.
  4. Select Sketch > Verify/Compile from the Arduino IDE's menus.
  5. Wait for the compilation to end.
  6. Right click on the black "Output" pane at the bottom of the Arduino IDE 2.x window.
  7. From the context menu, click Copy All.
  8. Open a forum reply here by clicking the Reply button.
  9. Click the </> icon on the post composer toolbar. This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  10. Press Ctrl+V. This will paste the compilation output into the code block.
  11. Move the cursor outside of the code tags before you add any additional text to your reply.
  12. Click the Reply button to post the output.

Hi, Thank you for your help, but sadly I will rather use the old ide. Thanks again!!

OK, I think that is the best decision. Arduino IDE 2.x is currently in the beta development phase. It is available as free open source software for the community to participate in testing and development, but it is not at a stable development state. The Arduino IDE 1.8.15 is still the most appropriate tool for normal use.

@Hike, your topic has been moved to the dedicated section for IDE 2.0 beta.

Thank you