Re: [avr-gcc-list] ATMega32 fuse bit problem

2010-09-07 Thread wlewis

Hi.. I was able to revive a completely wacked out atmega32 by the
following:

KEY - attach a 12mhz xtal (instead of a 16mhz xtal) 

code for default with jtag disabled:
avrdude -p m32 -b 19200 -P COM3 -c avrisp -V -F -e -u -U lock:w:0×3F:m -U
lfuse:w:0xe1:m -U hfuse:w:0xd9:m

then re-attach your 16mhz xtal and use this: (defaults for 16mhz xtal / jtag
disabled / fast power-up):
avrdude -p m32 -b 19200 -P COM3 -c avrisp -V -F -e -u -U lock:w:0x3F:m -U
lfuse:w:0xef:m -U hfuse:w:0xd9:m 


//...how sweet it is




James Pascoe wrote:
 
 Hi All,
 
 Apologies for the following question which is very OT, but there is a
 good chance you guys can help.
 
 I am using an ATMega32 and inadvertantly programmed the fuse bits wrong
 :-( ... instead of setting
 the fuse bits to use a 16 Mhz external crystal as the clock source, I
 programmed the chip to use the low frequency
 crystal oscillator setting. Of course now, I can not program the device
 anymore.
 
 Does anybody know if there is any way (other than getting hold of a
 32.768 Khz crystal) that I can recover the device ?
 
 Many thanks for any suggestions,
 
 James
 
 
 ___
 AVR-GCC-list mailing list
 AVR-GCC-list@nongnu.org
 http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
 
 

-- 
View this message in context: 
http://old.nabble.com/ATMega32-fuse-bit-problem-tp12189077p29627870.html
Sent from the AVR - gcc mailing list archive at Nabble.com.


___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


Re: [avr-gcc-list] ATMega32 fuse bit problem

2010-09-07 Thread Jeff Keyzer
James,

You can also use high voltage parallel programming mode to set fuses even when 
serial communication is not possible (oscillator set incorrectly, reset pin 
disabled, debugwire enabled, etc.).

A while back I made a simple circuit to allow an Arduino to parallel program 
the ATmega44/88/168/328.  You can try using a circuit like this if the fix 
wlewis posted fails.

I believe the STK500 and the AVR Dragon also support HVPP.

Jeff Keyzer
j...@mightyohm.com



On Sep 5, 2010, at 1:29 PM, wlewis wrote:

 
 Hi.. I was able to revive a completely wacked out atmega32 by the
 following:
 
 KEY - attach a 12mhz xtal (instead of a 16mhz xtal) 
 
 code for default with jtag disabled:
 avrdude -p m32 -b 19200 -P COM3 -c avrisp -V -F -e -u -U lock:w:0×3F:m -U
 lfuse:w:0xe1:m -U hfuse:w:0xd9:m
 
 then re-attach your 16mhz xtal and use this: (defaults for 16mhz xtal / jtag
 disabled / fast power-up):
 avrdude -p m32 -b 19200 -P COM3 -c avrisp -V -F -e -u -U lock:w:0x3F:m -U
 lfuse:w:0xef:m -U hfuse:w:0xd9:m 
 
 
 //...how sweet it is
 
 
 
 
 James Pascoe wrote:
 
 Hi All,
 
 Apologies for the following question which is very OT, but there is a
 good chance you guys can help.
 
 I am using an ATMega32 and inadvertantly programmed the fuse bits wrong
 :-( ... instead of setting
 the fuse bits to use a 16 Mhz external crystal as the clock source, I
 programmed the chip to use the low frequency
 crystal oscillator setting. Of course now, I can not program the device
 anymore.
 
 Does anybody know if there is any way (other than getting hold of a
 32.768 Khz crystal) that I can recover the device ?
 
 Many thanks for any suggestions,
 
 James
 
 
 ___
 AVR-GCC-list mailing list
 AVR-GCC-list@nongnu.org
 http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
 
 
 
 -- 
 View this message in context: 
 http://old.nabble.com/ATMega32-fuse-bit-problem-tp12189077p29627870.html
 Sent from the AVR - gcc mailing list archive at Nabble.com.
 
 
 ___
 AVR-GCC-list mailing list
 AVR-GCC-list@nongnu.org
 http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


Re: [avr-gcc-list] ATMega32 fuse bit problem

2010-09-07 Thread Jeff Keyzer
Sorry, forgot the link:

http://mightyohm.com/blog/2008/09/arduino-based-avr-high-voltage-programmer/

Jeff Keyzer
j...@mightyohm.com




On Sep 5, 2010, at 1:29 PM, wlewis wrote:

 
 Hi.. I was able to revive a completely wacked out atmega32 by the
 following:
 
 KEY - attach a 12mhz xtal (instead of a 16mhz xtal) 
 
 code for default with jtag disabled:
 avrdude -p m32 -b 19200 -P COM3 -c avrisp -V -F -e -u -U lock:w:0×3F:m -U
 lfuse:w:0xe1:m -U hfuse:w:0xd9:m
 
 then re-attach your 16mhz xtal and use this: (defaults for 16mhz xtal / jtag
 disabled / fast power-up):
 avrdude -p m32 -b 19200 -P COM3 -c avrisp -V -F -e -u -U lock:w:0x3F:m -U
 lfuse:w:0xef:m -U hfuse:w:0xd9:m 
 
 
 //...how sweet it is
 
 
 
 
 James Pascoe wrote:
 
 Hi All,
 
 Apologies for the following question which is very OT, but there is a
 good chance you guys can help.
 
 I am using an ATMega32 and inadvertantly programmed the fuse bits wrong
 :-( ... instead of setting
 the fuse bits to use a 16 Mhz external crystal as the clock source, I
 programmed the chip to use the low frequency
 crystal oscillator setting. Of course now, I can not program the device
 anymore.
 
 Does anybody know if there is any way (other than getting hold of a
 32.768 Khz crystal) that I can recover the device ?
 
 Many thanks for any suggestions,
 
 James
 
 
 ___
 AVR-GCC-list mailing list
 AVR-GCC-list@nongnu.org
 http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
 
 
 
 -- 
 View this message in context: 
 http://old.nabble.com/ATMega32-fuse-bit-problem-tp12189077p29627870.html
 Sent from the AVR - gcc mailing list archive at Nabble.com.
 
 
 ___
 AVR-GCC-list mailing list
 AVR-GCC-list@nongnu.org
 http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


Re: [avr-gcc-list] ATMega32 fuse bit problem

2010-09-05 Thread wlewis

Hi.. I was able to revive a completely wacked out atmega32 by the
following:

KEY - attach a 12mhz xtal (instead of a 16mhz xtal)

code for default with jtag disabled:
avrdude -p m32 -b 19200 -P COM3 -c avrisp -V -F -e -u -U lock:w:0×3F:m -U
lfuse:w:0xe1:m -U hfuse:w:0xd9:m

then re-attach your 16mhz xtal and use this: (defaults for 16mhz xtal / jtag
disabled / fast power-up):
avrdude -p m32 -b 19200 -P COM3 -c avrisp -V -F -e -u -U lock:w:0x3F:m -U
lfuse:w:0xef:m -U hfuse:w:0xd9:m 


//...how sweet it is




James Pascoe wrote:
 
 Hi All,
 
 Apologies for the following question which is very OT, but there is a
 good chance you guys can help.
 
 I am using an ATMega32 and inadvertantly programmed the fuse bits wrong
 :-( ... instead of setting
 the fuse bits to use a 16 Mhz external crystal as the clock source, I
 programmed the chip to use the low frequency
 crystal oscillator setting. Of course now, I can not program the device
 anymore.
 
 Does anybody know if there is any way (other than getting hold of a
 32.768 Khz crystal) that I can recover the device ?
 
 Many thanks for any suggestions,
 
 James
 
 
 ___
 AVR-GCC-list mailing list
 AVR-GCC-list@nongnu.org
 http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
 
 

-- 
View this message in context: 
http://old.nabble.com/ATMega32-fuse-bit-problem-tp12189077p29627869.html
Sent from the AVR - gcc mailing list archive at Nabble.com.


___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


Re: [avr-gcc-list] ATMega32 fuse bit problem

2007-11-13 Thread Bernard Fouché
If you focus on erasing the chip to regain control of it, then you can 
use nearly anything that provides logical zeros and ones as a clock.


For instance I  recovered chips sometimes by  using UART traffic because 
I had no other hardware at hand: I took a RS232-UART converter, sent a 
big file from a terminal emulator (with no particular protocol, just raw 
byte sending) and I tried a few times to erase the chip until it worked ;-)


Csroluxx wrote:

James Pascoe wrote:
  

Hi All,

Apologies for the following question which is very OT, but there is a
good chance you guys can help.

I am using an ATMega32 and inadvertantly programmed the fuse bits wrong
:-( ... instead of setting
the fuse bits to use a 16 Mhz external crystal as the clock source, I
programmed the chip to use the low frequency
crystal oscillator setting. Of course now, I can not program the device
anymore.

Does anybody know if there is any way (other than getting hold of a
32.768 Khz crystal) that I can recover the device ?

Many thanks for any suggestions,

James


___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list




Hi you can use one from old digital clock (or new one)
=)
  




___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


Re: [avr-gcc-list] ATMega32 fuse bit problem

2007-11-13 Thread David VanHorn
 For instance I  recovered chips sometimes by  using UART traffic because
 I had no other hardware at hand: I took a RS232-UART converter, sent a
 big file from a terminal emulator (with no particular protocol, just raw
 byte sending) and I tried a few times to erase the chip until it worked ;-)

I did a device controller that way once, sending nulls out on the data
line as clock and toggling the handshake line for data.  :)   The
intended use is only a suggestion!


___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


RE: [avr-gcc-list] ATMega32 fuse bit problem

2007-11-13 Thread Dave Hansen

  From: [EMAIL PROTECTED]

  For instance I  recovered chips sometimes by  using UART traffic because
  I had no other hardware at hand: I took a RS232-UART converter, sent a
  big file from a terminal emulator (with no particular protocol, just raw
  byte sending) and I tried a few times to erase the chip until it worked ;-)
 
 I did a device controller that way once, sending nulls out on the data
 line as clock and toggling the handshake line for data.  :)   The
 intended use is only a suggestion!

Clever!

If you just want a clean clock signal from a UART, set up to transmit 8N1 and 
send a continuous string of ASCII 'U' (0x55).  Assuming your application can 
keep the shift register full, you'll get a nice clean square wave whose 
frequency is 1/2 the baud rate (stop bit is 1, start bit is 0, and the data is 
transmitted LSB to MSB).

Regards,

   -=Dave


_
Windows Live Hotmail and Microsoft Office Outlook – together at last.  Get it 
now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


Re: [avr-gcc-list] ATMega32 fuse bit problem

2007-11-12 Thread Steven Michalske

You can still drive the xtal-in pin with a clock source

program one of your other microcontrollers to produce a 32kHz clock on  
a pin and pump it in to the xtal-in


then rewrite your fuses.

Steve


On Nov 11, 2007, at 11:24 PM, Anton Erasmus wrote:


On 11 Nov 2007 at 10:59, Csroluxx wrote:

Date sent:  Sun, 11 Nov 2007 10:59:51 -0800 (PST)
From:   Csroluxx [EMAIL PROTECTED]
To: avr-gcc-list@nongnu.org
Subject:Re: [avr-gcc-list] ATMega32 fuse bit problem




James Pascoe wrote:


Hi All,

Apologies for the following question which is very OT, but there  
is a

good chance you guys can help.

I am using an ATMega32 and inadvertantly programmed the fuse bits  
wrong

:-( ... instead of setting
the fuse bits to use a 16 Mhz external crystal as the clock  
source, I

programmed the chip to use the low frequency
crystal oscillator setting. Of course now, I can not program the  
device

anymore.

Does anybody know if there is any way (other than getting hold of a
32.768 Khz crystal) that I can recover the device ?

Many thanks for any suggestions,

James


___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list



Hi you can use one from old digital clock (or new one)
=)


You can also program via the JTAG pins, you do not need an external  
clock for that.
The AVRDRAGON is quite cheap, which you can use to re-program the  
fuses.


Regards
 Anton Erasmus


--
A J Erasmus



___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list




___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


Re: [avr-gcc-list] ATMega32 fuse bit problem

2007-11-11 Thread Csroluxx


James Pascoe wrote:
 
 Hi All,
 
 Apologies for the following question which is very OT, but there is a
 good chance you guys can help.
 
 I am using an ATMega32 and inadvertantly programmed the fuse bits wrong
 :-( ... instead of setting
 the fuse bits to use a 16 Mhz external crystal as the clock source, I
 programmed the chip to use the low frequency
 crystal oscillator setting. Of course now, I can not program the device
 anymore.
 
 Does anybody know if there is any way (other than getting hold of a
 32.768 Khz crystal) that I can recover the device ?
 
 Many thanks for any suggestions,
 
 James
 
 
 ___
 AVR-GCC-list mailing list
 AVR-GCC-list@nongnu.org
 http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
 
 
Hi you can use one from old digital clock (or new one)
=)
-- 
View this message in context: 
http://www.nabble.com/ATMega32-fuse-bit-problem-tf4281995.html#a13694560
Sent from the AVR - gcc mailing list archive at Nabble.com.



___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


Re: [avr-gcc-list] ATMega32 fuse bit problem

2007-11-11 Thread Anton Erasmus
On 11 Nov 2007 at 10:59, Csroluxx wrote:

Date sent:  Sun, 11 Nov 2007 10:59:51 -0800 (PST)
From:   Csroluxx [EMAIL PROTECTED]
To: avr-gcc-list@nongnu.org
Subject:Re: [avr-gcc-list] ATMega32 fuse bit problem

 
 
 James Pascoe wrote:
  
  Hi All,
  
  Apologies for the following question which is very OT, but there is a
  good chance you guys can help.
  
  I am using an ATMega32 and inadvertantly programmed the fuse bits wrong
  :-( ... instead of setting
  the fuse bits to use a 16 Mhz external crystal as the clock source, I
  programmed the chip to use the low frequency
  crystal oscillator setting. Of course now, I can not program the device
  anymore.
  
  Does anybody know if there is any way (other than getting hold of a
  32.768 Khz crystal) that I can recover the device ?
  
  Many thanks for any suggestions,
  
  James
  
  
  ___
  AVR-GCC-list mailing list
  AVR-GCC-list@nongnu.org
  http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
  
  
 Hi you can use one from old digital clock (or new one)
 =)

You can also program via the JTAG pins, you do not need an external clock for 
that.
The AVRDRAGON is quite cheap, which you can use to re-program the fuses.

Regards
  Anton Erasmus

 
-- 
A J Erasmus



___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


Re: [avr-gcc-list] ATMega32 fuse bit problem

2007-08-30 Thread James Pascoe
Cool ... thanks that worked great.

Thanks guys,

James

Jkx wrote:
 On Thu, 23 Aug 2007 07:22:22 -0400
 Graham Davies [EMAIL PROTECTED] wrote:

   
 James Pascoe
 
 I am using an ATMega32 and inadvertantly programmed the fuse
 bits wrong ...
 Does anybody know if there is any way (other than getting hold of a
 32.768 Khz crystal) that I can recover the device ?
   


 I get the same issue, and fixed it by this way:
 - http://www.larsen-b.com/Article/260.html


 Bye bye


 ___
 AVR-GCC-list mailing list
 AVR-GCC-list@nongnu.org
 http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

   



___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


Re: [avr-gcc-list] ATMega32 fuse bit problem

2007-08-23 Thread Jkx
On Thu, 23 Aug 2007 07:22:22 -0400
Graham Davies [EMAIL PROTECTED] wrote:

 James Pascoe
  I am using an ATMega32 and inadvertantly programmed the fuse
  bits wrong ...
  Does anybody know if there is any way (other than getting hold of a
  32.768 Khz crystal) that I can recover the device ?


I get the same issue, and fixed it by this way:
- http://www.larsen-b.com/Article/260.html


Bye bye


___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


Re: [avr-gcc-list] ATMega32 fuse bit problem

2007-08-16 Thread Vincent Trouilliez
On Thu, 16 Aug 2007 20:34:25 +0100
James Pascoe [EMAIL PROTECTED] wrote:
 Hi All,
 
 Apologies for the following question which is very OT, but there is a
 good chance you guys can help.

Hi James,

Yes this is off-topic, but it would be perfectly spot on topic on the
sister list of avr-gcc : avr-chat:

http://lists.nongnu.org/mailman/listinfo/avr-chat

just subscribe and anything you might ask about the avr will be at home
there ;-)

 I am using an ATMega32 and inadvertantly programmed the fuse bits wrong
 :-( ... instead of setting
 the fuse bits to use a 16 Mhz external crystal as the clock source, I
 programmed the chip to use the low frequency
 crystal oscillator setting. Of course now, I can not program the device
 anymore.
 
 Does anybody know if there is any way (other than getting hold of a
 32.768 Khz crystal) that I can recover the device ?
 
 Many thanks for any suggestions,


I use an ATmega32 too, and I think I did that mistake too ! 
I was suggested to drive the chip directly, by supplying a TTL clock
signal on the XTAL1 pin of the chip, using a signal generator. I
remember at 400KHz it allowed avrdude to chat with the AVR chip just
fine, letting me reconfigure the fuse bits properly, but at 100KHz and
lower, it stopped working. SO just use something in the order of 500KHZ
or higher, and it should work :-)
If you don't have a signal generator, it should be easy to DIY a
simple/dirty clock generator/oscillator to get you out of trouble.

HTH

--
Vince


___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list