An error occurred while uploading the sketch

Hello everyone!

I recently bought my first Arduino Nano (I have got an Arduino Uno too), but, when I wrote my first sketch (using ArduBlock for the first time too), I had some troubles with the uploading on the board. I got this error:

Arduino: 1.6.11 (Windows 10), Board: "Arduino Nano, ATmega328"

Sketch uses 444 bytes (1%) of program storage space. Maximum is 30,720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
An error occurred while uploading the sketch

Nobody could help me on GitHub, I'm hopin' you can :slight_smile:

Bye :o

Was it uploading before ? Did you try to upload any example codes ?

1.6.11? Ancient. Try updating 1.8.12 is the current revision.

codingotaku:
Hello everyone!

I recently bought my first Arduino Nano (I have got an Arduino Uno too), but, when I wrote my first sketch (using ArduBlock for the first time too), I had some troubles with the uploading on the board. I got this error:

Arduino: 1.6.11 (Windows 10), Board: "Arduino Nano, ATmega328"

Sketch uses 444 bytes (1%) of program storage space. Maximum is 30,720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
An error occurred while uploading the sketch

Nobody could help me on GitHub, I'm hopin' you can :slight_smile:

Bye :o

Switch on verbose output during upload in the IDE under file -> preferences and post the errors that you get. If too big, save it in a file and attach.

Which version of the board manager are you using? You can find it in the IDE under tools -> boards -> board manager. Reason for asking is that if this an original Nano, it probably has an newer bootloader (Arduino changed it two years (?) ago) than is supported by the board manager that shipped with IDE 1.6.11.

There are a few options if that is the case
1)
Try using Uno for the board instead of Nano; I think this should work but not sure.
2)
Upgrade board manager to a newer version; from memory, it should be at least version 1.6.21.
3)
Upgrade the IDE to a newer version.