Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use Arduino Uno as ISP to program Arduino Mega 2560 using this Pin connections (Uno->Mega):

slave reset: 10: -> RESET on target

MOSI: 11: -> 51

MISO: 12: -> 50

SCK: 13: -> 52

It runs perfectly when I "Burn Bootloader" from Arduino IDE and LED starts blinking on target. So I assume my pin connections are correct.

However, when I open the Blink example and perform "Upload Using Programmer" in Sketch tab after choosing "Arduino as ISP" in Tools>Programmer it uploads the code but LED on Mega doesn't blink.

I'm afraid that I have problem in my Mega Bootloader hex file and think it's not configuring Pin 13 as a LED pin. But in this case I shouldn't have seen the led blinking after burning the bootloader.

What am I missing here? I appreciate your help. -Bex

share|improve this question
    
The problem may be related to reset. See arduino.stackexchange.com/a/19131/3879 – Milliways Jan 4 at 11:13
    
No, I checked the connections and they look fine. I set the RESET pin as D13 in Arduino Uno and don't think it's wrong. Also defined the RESET pin as D13 in the ArduinoISP Example. – bex Jan 4 at 18:03
    
When you "upload using programmer" the target board's bootloader is not involved, and I believe it actually gets removed by doing that. – Chris Stratton Apr 14 at 14:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.