You need to activate the bootloader in order to upload sketches with the Arduino IDE. Here's how you do it.