Hello Westfw I did exactly what you suggested but didn´t work
Which tutorial, exactly, are you following?
Aurdino IDE says:
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:01:35
What's the line before that, which shows the exact avdude command that was executed? It should look like:
C:\Program Files\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cstk500v1 -PCOM4 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xD8:m -Ulfuse:w:0xFF:m
Never mind. The logs you did include make it clear that you're doing something quite wrong; probably following a tutorial for a setup that is quite different than what you actually have. The parts in red below are ... not what they should be...
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:01:35
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 JoergWunsch
System wide configuration file is "/Volumes/JoseSSDData/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/joemac/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/cu.usbmodem1411
[color=red] Using Programmer : wiring
Overriding Baud Rate : 115200[/color]
AVR Part : ATmega2560
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinWMaxWReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 10 8 0 no 4096 8 0 9000 9000 0x00 0x00
flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x00 0x00
lfuse 0 000 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 000 no 1 0 0 9000 9000 0x00 0x00
efuse 0 000 no 1 0 0 9000 9000 0x00 0x00
lock 0 000 no 1 0 0 9000 9000 0x00 0x00
calibration 0 000 no 1 0 000 0x00 0x00
signature 0 000 no 3 0 000 0x00 0x00
[color=red] Programmer Type : Wiring
Description : Wiring
Programmer Model: AVRISP[/color]
Hardware Version: 15
Firmware Version Master : 2.10
Vtarget : 0.0 V
SCK period : 0.1 us
It SHOULD look like:
C:\Program Files\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cstk500v1 -PCOM4 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xD8:m -Ulfuse:w:0xFF:m
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
:
System wide configuration file is "C:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM4
[color=limegreen] Using Programmer : stk500v1
Overriding Baud Rate : 19200[/color]
AVR Part : ATmega2560
Chip Erase delay : 9000 u
:[color=limegreen]
Programmer Type : STK500
Description : Atmel STK500 Version 1.x firmware[/color]
Hardware Version: 2
Firmware Version: 1.18
:
avrdude: AVR device initialized and ready to accept instructions
The best tutorial around, currently is probably Nick Gammon's, but it doesn't talk about using a MEGA as a programmer or target at all. In theory, once the connections are correct, it should work about the same. The outline is:
- Connect the working Arduino that you'll be using as the programmer to your PC with the USB cable.
- set the "Board" and "Port" as appropriate for that board.
- open and upload the "ArduinoISP" example program.
- disable auto-reset on the programmer board (10uF cap between RESET and GROUND, usually.)
- (theoretically, you should unplug the USB cable at this point, so that the programmer is not powered)
- Connect the target board that you're trying to put the bootloader on to the programmer, either via the SPI pins on the IO connectors (13, 12, 11, 10, PWR, GND on Uno; 52, 51. 50, 10, PWR, GND on MEGA) or via the ISP connector (+pin10) on any AVR board.
- (plug the programmer board back into the USB port. the target board is powered via the programming connections/)
- Change the "Board" setting to match the target board (also set the "CPU" and other board specific values, if any, so they match the target.) Make sure the "Port" is still set to the port that the "programmer" arduino is on. Set the "Programmer" to "Arduino as ISP" (do NOT use "ArduinoISP", which is different. (sigh.))
- NOW click "burn bootloader."