[En-Nut-Discussion] SP duo V1.0

Aigars aigars at egle.cs.rtu.lv
Wed Jan 20 10:00:50 CET 2016


Hi!
I tried to use old egnite starter kit  with ethernut 2.1 B bord. This 
kit contains not upgradable SP DUO adapter V1.0 (as it reports after 
Ctr-V in terminal).

I can compile OS and demo applications but burning does not work:

c:\ethernut-5.1\nutapp_21b\httpd_simple>avrdude -p m128 -P com9 -c 
stk500v1 -V -v -v -U flash:w:httpd_simple.hex

avrdude: Version 5.6, compiled on Mar  5 2009 at 09:59:30
          Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

          System wide configuration file is 
"c:\ethernut-5.1\nut\tools\win32\avrdude.conf"

          Using Port                    : com9
          Using Programmer              : stk500v1
          AVR Part                      : ATMEGA128
          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  Max
W   ReadBack
            ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ---
-- ---------
            eeprom         4    12    64    0 no       4096    8 0  9000  90
00 0xff 0xff
            flash         33     6   128    0 yes    131072  256 512  
4500  45
00 0xff 0xff
            lfuse          0     0     0    0 no          1    0 0  9000  90
00 0x00 0x00
            hfuse          0     0     0    0 no          1    0 0  9000  90
00 0x00 0x00
            efuse          0     0     0    0 no          1    0 0  9000  90
00 0x00 0x00
            lock           0     0     0    0 no          1    0 0  9000  90
00 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 STK500 Version 1.x firmware
          Hardware Version: 14
          Firmware Version: 49.48
          Topcard         : Unknown

avrdude: stk500_getparm(): parameter 0x84 failed

avrdude: stk500_getparm(): parameter 0x85 failed
          Vtarget         : 429496729.4 V
          Varef           : 57383688.4 V
          Oscillator      : Off
          SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.08s

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.

Forcing does not get much more:

c:\ethernut-5.1\nutapp_21b\httpd_simple>avrdude -F -p m128 -P com9 -c 
stk500v1 -V -v -v -U flash:w:httpd_simple.hex

avrdude: Version 5.6, compiled on Mar  5 2009 at 09:59:30
          Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

          System wide configuration file is 
"c:\ethernut-5.1\nut\tools\win32\avrdude.conf"

          Using Port                    : com9
          Using Programmer              : stk500v1
          AVR Part                      : ATMEGA128
          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  Max
W   ReadBack
            ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ---
-- ---------
            eeprom         4    12    64    0 no       4096    8 0  9000  90
00 0xff 0xff
            flash         33     6   128    0 yes    131072  256 512  
4500  45
00 0xff 0xff
            lfuse          0     0     0    0 no          1    0 0  9000  90
00 0x00 0x00
            hfuse          0     0     0    0 no          1    0 0  9000  90
00 0x00 0x00
            efuse          0     0     0    0 no          1    0 0  9000  90
00 0x00 0x00
            lock           0     0     0    0 no          1    0 0  9000  90
00 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 STK500 Version 1.x firmware
          Hardware Version: 14
          Firmware Version: 49.48
          Topcard         : Unknown

avrdude: stk500_getparm(): parameter 0x84 failed

avrdude: stk500_getparm(): parameter 0x85 failed
          Vtarget         : 429496729.4 V
          Varef           : 260378068.5 V
          Oscillator      : Off
          SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.05s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATMEGA128 is 1E 97 02
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be 
performed

          To disable this feature, specify the -D option.
avrdude: current erase-rewrite cycle count is 1061109567 (if being tracked)
avrdude: erasing chip
avrdude: reading input file "httpd_simple.hex"
avrdude: input file httpd_simple.hex auto detected as Intel Hex
avrdude: writing flash (56560 bytes):

Writing |                                                    | 0% 
0.00savrdude:
stk500_loadaddr(): (a) protocol error, expect=0x14, resp=0x55

avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x11
Writing | ################################################## | 100% 10.11s

avrdude: failed to write flash memory, rc=-5

avrdude: stk500_cmd(): protocol error

c:\ethernut-5.1\nutapp_21b\httpd_simple>

Is this problem in adapter or avrdude configuration or somewhere else?
P.S
Tried with old pc and default software in dev kit under old XP - error 
from uisp was that MCU is not in reset state...
Aigars


More information about the En-Nut-Discussion mailing list