Go Down

Topic: Trouble burning bootloader to Atmega2561 (Read 6674 times) previous topic - next topic

Jayson_Intal

what happen is I think I have some trouble with my IE. I switch to Google chrome. An finally I got the same copy from you.

thanks again! :)

reganmaxx

#46
Aug 27, 2017, 05:28 pm Last Edit: Aug 27, 2017, 05:34 pm by reganmaxx
Hi i am having issues getting the bootloader onto a 2561 16AU model.

I have followed your advice in this topic and downloaded stk500boot_v2_m2561_16mhz.hex and placed it in the AppData folder as well as C:\Program Files (x86)\Arduino\hardware\arduino\avr\bootloaders\stk500v2.

I have updated boards.txt to the following:
Code: [Select]
## Arduino/Genuino Mega w/ ATmega2561
## -------------------------

mega.menu.cpu.atmega2561=ATmega2561 (Mega 2561)

mega.menu.cpu.atmega2561.upload.protocol=wiring
mega.menu.cpu.atmega2561.upload.maximum_size=258048
mega.menu.cpu.atmega2561.upload.speed=115200

mega.menu.cpu.atmega2561.bootloader.high_fuses=0xFF
mega.menu.cpu.atmega2561.bootloader.extended_fuses=0xD8
mega.menu.cpu.atmega2561.bootloader.file=stk500v2/stk500boot_v2_m2561_16mhz.hex
mega.menu.cpu.atmega2561.bootloader.unlock_bits=0x3F
mega.menu.cpu.atmega2561.bootloader.lock_bits=0x0F

mega.menu.cpu.atmega2561.build.mcu=atmega2561
mega.menu.cpu.atmega2561.build.f_cpu=16000000L
mega.menu.cpu.atmega2561.build.core=arduino
mega.menu.cpu.atmega2561.build.board=AVR_MEGA2561

In both locations again AppData folder as well as C:\Program Files (x86)\Arduino\hardware\arduino\avr\bootloaders\stk500v2.

and i have replaced the original pins_arduino.h file with the one CrossRoads supplied.

The part of the process i can't get past is the device signature, i sometimes get random values but mostly 0x000000.

I am using Arduino 1.6.10 and an Arduino Mega ADK as the ISP.

Running ArduinoISP on the ADK with the standard spi clock of (1000000/6) and baud rate 19200.

I have connected PE0 to MOSI on the ADK and PE1 to MISO on the ADK, reset is connected to pin 10 as in the ArduinoISP code. SCK is connected to SCK with no other devices connected to the 2 units.

The difference i can see between what you guys have posted and what i am doing is the programmer is being reported as V1 and not V2, have i missed something to force this to use V2?

The error messages looks like this:
Code: [Select]
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\Rob\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"

         Using Port                    : COM3
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega2561
         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 MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           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     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Error while burning bootloader.
Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.


Attached are diagrams and pictures of my board.

Thanks for any help you can give me  :)

Go Up