Go Down

Topic: Burning bootloader to NANO using a MEGA. (Read 155 times) previous topic - next topic

hzd1977

Hi there.

I can't seem do get this to work.
I've tried following this video: https://www.youtube.com/watch?v=mq5PhM_Fz9Y
I've also tried to connect to the 2x3 pins instead of pins 10 11 12 13

Do I need to change the pins in the ArduinoISP code?
Or maybe, my NANO is just very dead. (When resetting or powering up, the led flashes once, if that is any indicator. Read that it is supposed to flash three times, to indicate, it is ok)


pert

Please do this:
  • Tools > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK
  • Tools > Burn Bootloader
  • After the process fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
  • Paste the error messages in a reply here USING CODE TAGS (</> button on the toolbar).

hzd1977

I didn't find the "Tools > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK"

I'm on mac, by the way. I found preferences under the Arduino menu, but nothing that looked like Show verbose....

Code: [Select]
Arduino: 1.8.0 (Mac OS X), Board: "Arduino Nano, ATmega328"

/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -P/dev/cu.usbmodemFA131 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m

avrdude: Version 6.3, compiled on Dec 16 2016 at 13:32:25
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/HZD/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbmodemFA131
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Error while burning bootloader.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Budvar10

Hi there.

I can't seem do get this to work.
I've tried following this video: https://www.youtube.com/watch?v=mq5PhM_Fz9Y
I've also tried to connect to the 2x3 pins instead of pins 10 11 12 13

Do I need to change the pins in the ArduinoISP code?
Or maybe, my NANO is just very dead. (When resetting or powering up, the led flashes once, if that is any indicator. Read that it is supposed to flash three times, to indicate, it is ok)
Arduino MEGA2560 has ISP on pins 53, 51, 50, 52. It is written also below the video you've linked. Of course, you can use ISP (2x3) connector on MEGA also - pins 1, 4, 3 instead of 50, 51, 52. It is the same but pin 53 must be connected to RESET on target device.
You need not to change the ArduinoISP code.
Arduino as ISP technique works pretty reliable. Response 0 points to wrong connection in 95% of cases.
Arduino clone with ATmega1284P   http://forum.arduino.cc/index.php?topic=277260.0

pert

I didn't find the "Tools > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK"
Oops, I meant File > Preferences, but even that's a bit different on Mac I guess.

pert

pin 53 must be connected to RESET on target device.
That video is using Arduino IDE 1.0.1. The ArduinoISP sketch included with all recent versions of the IDE always uses pin 10 unless you're using a HoodLoader board:
https://github.com/arduino/Arduino/blob/1.8.3/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino#L73

So even when using the Mega you still need to connect pin 10 on the board used as Arduino as ISP to the reset pin on the target board.

Budvar10

Aha, I'm 'old dog'. :)
I'm still using old ArduinoISP and in addition modified by myself.
+1
Arduino clone with ATmega1284P   http://forum.arduino.cc/index.php?topic=277260.0

hzd1977

So, still no luck when using pin 10 on the MEGA connected to RST pin on NANO.

This is the error messages after the burn process fails.


Code: [Select]
Arduino: 1.8.0 (Mac OS X), Board: "Arduino Nano, ATmega328"

/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -P/dev/cu.usbmodemFA131 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m

avrdude: Version 6.3, compiled on Dec 16 2016 at 13:32:25
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/HZD/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbmodemFA131
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Error while burning bootloader.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


So I'm guessing, my NANO is in worse shape, than I hoped for. Right?

kprims

Mine won't work unless I put a 10uF Capacitor between Reset and ground on my Mega after loading the ArduinoISP sketch and selecting the Nano/Uno I want to put the bootloader on. I'm boot loading a Uno for my test.

hzd1977

Well. Now I have a new UNO board. Will I still need a 10 uF between reset and ground?

kprims

Using Arduino as ISP is like playing the lottery. :-) Some days I need the 10uF cap. and other days ,other Arduinos I don't need it. If you can't burn the bootloader, then try the 10uF cap.

Better yet, get a couple Usbasps and read up about putting the 1.06 version on it. I have been using the Usbasp for over a year and have burned 8Mhz internal bootloader on bare m128 chips that I soldered on pcb's (around 30) with very few problems. If you plug it in right it just works.

https://forum.arduino.cc/index.php?topic=363772.0

Go Up