Compiled sketch not found

  • Arduino CLI
  • Arduino IDE

You may see

Compiled sketch not found in

Why it happens

  • The code has an error, so no machine code was made.
  • The upload was started without verifying first (Arduino CLI).

How to fix it

  1. Press Verify (the tick) first.
  2. Scroll up to the first red line and fix that error.
  3. Then press Upload.

It worked if: Verify ends with "Sketch uses … bytes".

Seen in a real run (some lines are close variants of it). Produced with Arduino CLI 1.5.1 and Arduino AVR core 1.8.8 (the same compiler the Arduino IDE uses).

Didn't help? Search another error or ask us.