Errors while uploading a sketch in Arduino Programming

Errors while uploading a sketch in Arduino Programming 



When there is an error the IDE will print relevant information in the console. Learn how to resolve common errors.

Check this first

These checks will resolve the most common errors:


Check your board and port selections: 

In the top menu bar, make sure the correct board is selected in Tools > Board, and that you’ve selected the right port in Tools > Port. Try disconnecting and reconnecting your board if you’re unsure which port is being used (close and reopen the Port menu to refresh the list). For more information, see Select the right port and board.


Check your sketch for errors:

 Click the  Verify button to compile your sketch without uploading it. If you still get an error, see Compilation errors when uploading.


Check your connections:

 Your board needs to be connected with a data USB cable (charge-only cables will not work). Make sure the cable is fully inserted in the port on each end. Try a different USB cable, and avoid hubs and other adapters if possible. Remove connections to the board pins, especially the 0 (RX) and 1 (TX) digital pins.


Comments

Popular posts from this blog

What is Arduino UNO?

Arduino Programming In Brief