user81074: I am a beginner with Arduino. I have a program that is intentionally simple.
The code refuses to compile, spitting out the error Compilation error: Error: 13 INTERNAL: exit status 1. I have gotten this type of error multiple times, and I have no idea what causes it, nor how to fix it.
My code is below, by the way.
void setup() {
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);

  analogWrite(10, 10);
}

void loop() {
  digitalWrite(9, HIGH);
  digitalWrite(11, LOW);
  delay(250)
  digitalWrite(9, LOW);
  digitalWrite(11, HIGH); 
}


user4143: The problem with that error message is that you are only reading the very last line. That line says "Oops, it didn't compile". The actual error message occurs before that. You need to read the entire message to know what is going on.
With your code, for example, you get the following output:
blah.ino: In function 'void loop()':
blah.ino:13:3: error: expected ';' before 'digitalWrite'
   digitalWrite(9, LOW);

That is your actual error. It's telling you that there's a semi-colon missing before the digitalWrite on line 13.  There's nothing before the digitalWrite on line 13, but, if you look closely, you can see that line 12 has the semi-colon missing from the end of it.:
  delay(250)    <---- missing ;
  digitalWrite(9, LOW);

Thus it proves that it is always important to both read and (if you don't understand it) post the entire error message not just the last line.

81074: <p>I am a beginner with Arduino. I have a program that is intentionally simple.</p>
<p>The code refuses to compile, spitting out the error <code>Compilation error: Error: 13 INTERNAL: exit status 1</code>. I have gotten this type of error multiple times, and I have no idea what causes it, nor how to fix it.</p>
<p>My code is below, by the way.</p>
<pre class="lang-c++ prettyprint-override"><code>void setup() {
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);

  analogWrite(10, 10);
}

void loop() {
  digitalWrite(9, HIGH);
  digitalWrite(11, LOW);
  delay(250)
  digitalWrite(9, LOW);
  digitalWrite(11, HIGH); 
}
</code></pre>
 4143: <p>The problem with that error message is that you are only reading the very last line. That line says &quot;Oops, it didn't compile&quot;. The <em>actual</em> error message occurs <em>before</em> that. You need to read the entire message to know what is going on.</p>
<p>With your code, for example, you get the following output:</p>
<pre><code>blah.ino: In function 'void loop()':
blah.ino:13:3: error: expected ';' before 'digitalWrite'
   digitalWrite(9, LOW);
</code></pre>
<p>That is your <em>actual</em> error. It's telling you that there's a semi-colon missing before the <code>digitalWrite</code> on line 13.  There's nothing before the <code>digitalWrite</code> on line 13, but, if you look closely, you can see that line 12 has the semi-colon missing from the <em>end</em> of it.:</p>
<pre class="lang-cpp prettyprint-override"><code>  delay(250)    &lt;---- missing ;
  digitalWrite(9, LOW);
</code></pre>
<p>Thus it proves that it is always important to both read and (if you don't understand it) post <strong>the entire error message not just the last line.</strong></p>
