[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] Using avrdude on linux to enter and leave dW
From: |
Joerg Wunsch |
Subject: |
Re: [avr-chat] Using avrdude on linux to enter and leave dW |
Date: |
Mon, 18 Apr 2011 08:14:09 +0200 (MET DST) |
Markus Baertschi <address@hidden> wrote:
> I did presume that using this I can go back to ISP:
>> avrdude -P usb -c dragon_dw -p t85 -v -U hfuse:w:0xDF:m
No. dragon_dw cannot reprogram fuses, as debugWIRE mode cannot handle
that. You have to use dragon_isp again. It will fail in the first
attempt, but then issue the sequence to get out of debugWIRE. After
this, you have to re-issue the (ISP!) command, and it's supposed to
work.
Of course, nothing mandates you'd have to reprogram the fuses at this
point at all: debugWIRE mode is just left temporarily in order to
assign the /RESET pin to the ISP algorithm again. This state lasts
until the next power-cycle, at which point the DWEN fuse will be
evaluated again. So, if you intend to continue debugging, you could
as well just use ISP mode to download new firmware (my experience says
it's often faster and more reliable than within debugWIRE mode), and
then just power-cycle to start a new debugging session.
Obviously, your debugWIRE mode must be functional in order to get out
of debugWIRE. If there are hardware issues that make debugWIRE mode
not work (too much capacitive load at /RESET etc.), all this wouldn't
work at all.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
- [avr-chat] Using avrdude on linux to enter and leave dW, Markus Baertschi, 2011/04/16
- Re: [avr-chat] Using avrdude on linux to enter and leave dW, Jeff Keyzer, 2011/04/16
- Re: [avr-chat] Using avrdude on linux to enter and leave dW, Markus Baertschi, 2011/04/16
- Re: [avr-chat] Using avrdude on linux to enter and leave dW, Jeff Keyzer, 2011/04/16
- Re: [avr-chat] Using avrdude on linux to enter and leave dW, Markus Baertschi, 2011/04/16
- Re: [avr-chat] Using avrdude on linux to enter and leave dW, Jeff Keyzer, 2011/04/16
- Re: [avr-chat] Using avrdude on linux to enter and leave dW, Markus Baertschi, 2011/04/16
- Re: [avr-chat] Using avrdude on linux to enter and leave dW, Mitch Davis, 2011/04/19
Re: [avr-chat] Using avrdude on linux to enter and leave dW,
Joerg Wunsch <=