ERROR: address 0x2010 out of range at line 513 of test.hex

356 views
Skip to first unread message

wvyr...@gmail.com

unread,
Mar 12, 2017, 10:37:07 AM3/12/17
to cheali-charger
Hi!
For the last 8 hours I was awake I've been trying to flash my Dual Power B6AC 80W charger. At first I tried flashing it using my usbasp, but it seamed out of date and I tried updating it, and might have bricked it by now.
Last thing I tried was using a arduino leonardo clone (which is a 100% perfectly working one) to flash it. I've verified I got the correct FW and no wrong bits in the hex etc. but it's still corrupted/broken: ERROR: address 0x2010 out of range at line 513 of test.hex

Anyone got any ideas what I could be doing wrong?


Full log:
sudo avrdude -c avrisp -P /dev/ttyACM0 -p atmega8 -F -Uflash:w:test.hex:a -u -v -v
[sudo] password for frog: 

avrdude: Version 6.3, compiled on Nov  6 2016 at 21:45:03
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         Using Programmer              : avrisp
         AVR Part                      : ATmega8
         Chip Erase delay              : 10000 us
         PAGEL                         : PD7
         BS2                           : PC2
         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         4    20   128    0 no        512    4      0  9000  9000 0xff 0xff
           flash         33    10    64    0 yes      8192   64    128  4500  4500 0xff 0x00
           lfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
           calibration    0     0     0    0 no          4    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel AVR ISP
         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.01s

avrdude: Device signature = 0x1e9502 (probably m32)
avrdude: Expected signature for ATmega8 is 1E 93 07
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "test.hex"
avrdude: input file test.hex auto detected as Intel Hex
avrdude: ERROR: address 0x2010 out of range at line 513 of test.hex
avrdude: read from file 'test.hex' failed

avrdude done.  Thank you.

diggit

unread,
Mar 12, 2017, 11:09:19 AM3/12/17
to cheali-charger
Read log...

avrdude: Device signature = 0x1e9502 (probably m32)
avrdude: Expected signature for ATmega8 is 1E 93 07

Isn't it obvious?

sudo avrdude -c avrisp -P /dev/ttyACM0 -p atmega8 -F -Uflash:w:test.hex:a -u -v -v

You are telling, that device is ATmega8, avrdude  says, you are wrong. It found ATmega32 on the other end. You should know, what device you are flashing!

Change: -p atmega8 -> -p m32

wvyr...@gmail.com

unread,
Mar 12, 2017, 11:12:23 AM3/12/17
to cheali-charger
Seriously? I'm blind af sometimes...

wvyr...@gmail.com

unread,
Mar 12, 2017, 11:14:44 AM3/12/17
to cheali-charger
Got it flashed now. thanks!
Reply all
Reply to author
Forward
0 new messages