SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on the software and hardware for Atmel's STK standard.
By aerouta
#170750
Hello all, I am seeking help with programming an arduino MEGA via the ICSP using a USBasp. I have gone through the required firmware dates to the USPasp and such. I am even able to upload code to the arduino UNO using this method with no problems via the arduino IDE or microsoft visual studio. However, when I attempt to upload to the MEGA boards nothing happens. I get no errors. The compiler says everything was successful but I cannot get the simple blink code to work. Below is the message I recieve when attempting to upload to the MEGA. I get the same type of message when i upload to the UNO but in that case it actually works.
Compiling 'test' for 'Arduino Mega 2560 or Mega ADK'
Binary sketch size: 1632 bytes (of a 258048 byte maximum) (0.2140123 secs)
Uploading to I/O board using 'usbasp'
Done uploading

Here is the simple code I am uploading
Code: Select all
int led = 13;

void setup() {                
  pinMode(led, OUTPUT);     
}

void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
}
I have tried using the USBasp, Arduino UNO, and Arduino Mega as a programmer to write to a mega with no success. Any clue what I am missing?? Still not getting any error messages, just a non responsive board.

Any suggestions??