bugAVR Downloader/UploaDEr - Bugs: bug #33114, Segfault after setting the DWEN...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #33114: Segfault after setting the DWEN fuse with Dragon

Submitted by:  Markus Baertschi <markus_b>
Submitted on:  Mon 18 Apr 2011 07:17:00 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Name: Markus
Open/Closed: ClosedRelease: None
Programmer hardware: Device type: 

Fri 26 Aug 2011 10:11:16 AM UTC, comment #1:

Fixed in r983.

Calling exit(0) from deep within the callstack has been
proven fatal (and was a big DON'T in the light of this being
within a library function). The exithook handler called
stk500v2_jtagmkII_teardown() which in turn tried to switch
the private data context for the call to jtagmkII_teardown() -
but the context was still set up for jtagmkII mode anyway,
as this was the case when executing jtagmkII_getsync().

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Mon 18 Apr 2011 07:17:00 PM UTC, original submission:

Avrdude did segfault when running the second time after after programming the DWEN fuse.
The dragon had to be reset (power cycled) to work properly afterwards, too.

markus@T60:~$ avrdude -P usb -c dragon_isp -p t85 -v -U hfuse:w:0x9D:m

avrdude: Version 5.10, compiled on Jun 30 2010 at 20:31:41
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "/usr/local/avr/etc/avrdude.conf"
User configuration file is "/home/markus/.avrduderc"

Using Port : usb
Using Programmer : dragon_isp
avrdude: usbdev_open(): Found AVRDRAGON, serno: 00A2000053CF
JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
boot-loader FW version: 255
firmware version: 6.11
hardware version: 1
S_MCU:
boot-loader FW version: 255
firmware version: 6.11
hardware version: 6
Serial number: 00:a2:00:00:53:cf
Device ID: AVRDRAGON
AVR Part : ATtiny85
Chip Erase delay : 4500 us
PAGEL : P00
BS2 : P00
RESET disposition : possible i/o
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 6 4 0 no 512 4 0 4000 4500 0xff 0xff
flash 65 6 32 0 yes 8192 64 128 4500 4500 0xff 0xff
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 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
calibration 0 0 0 0 no 2 0 0 0 0 0x00 0x00

Programmer Type : DRAGON_ISP
Description : Atmel AVR Dragon in ISP mode
Vtarget : 5.0 V
SCK period : 4.00 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.15s

avrdude: Device signature = 0x1e930b
avrdude: safemode: lfuse reads as 62
avrdude: safemode: hfuse reads as DD
avrdude: safemode: efuse reads as FF
avrdude: reading input file "0x9D"
avrdude: writing hfuse (1 bytes):

Writing | ################################################## | 100% 0.15s

avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0x9D:
avrdude: load data hfuse data from input file 0x9D:
avrdude: input file 0x9D contains 1 bytes
avrdude: reading on-chip hfuse data:

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

avrdude: verifying ...
avrdude: 1 bytes of hfuse verified

avrdude: safemode: lfuse reads as 62
avrdude: safemode: hfuse reads as 9D
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK

avrdude done. Thank you.

markus@T60:~$ avrdude -c dragon_isp -P usb -p t85 -v

avrdude: Version 5.10, compiled on Jun 30 2010 at 20:31:41
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "/usr/local/avr/etc/avrdude.conf"
User configuration file is "/home/markus/.avrduderc"

Using Port : usb
Using Programmer : dragon_isp
avrdude: usbdev_open(): Found AVRDRAGON, serno: 00A2000053CF
JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
boot-loader FW version: 255
firmware version: 6.11
hardware version: 1
S_MCU:
boot-loader FW version: 255
firmware version: 6.11
hardware version: 6
Serial number: 00:a2:00:00:53:cf
Device ID: AVRDRAGON
avrdude: jtagmkII_setparm(): bad response to set parameter command: RSP_FAILED
avrdude: jtagmkII_getsync(): ISP activation failed, trying debugWire
avrdude: Target prepared for ISP, signed off.
avrdude: Please restart avrdude without power-cycling the target.
Segmentation fault

Markus Baertschi <markus_b>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by markus_b (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 26 Aug 2011 10:11:16 AM UTCjoerg_wunschStatusNone=>Fixed
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1