Author Topic: Problem with another Mega32  (Read 2409 times)

0 Members and 1 Guest are viewing this topic.

Offline bogdan2013Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ro
  • Always is someone better than you !
Problem with another Mega32
« on: February 22, 2013, 08:53:38 pm »
On another Mega32 the clock fuses was setted wrong : RC Oscillator 8-12 Mhz external . I don't know how to reverse this :(
I put a external clock from my mega32 and the software who was in flash is working good , but my programmer can't connect to it ...
 

Offline olsenn

  • Frequent Contributor
  • **
  • Posts: 993
Re: Problem with another Mega32
« Reply #1 on: February 22, 2013, 09:45:54 pm »
Some fuses can be set/cleared in a running system via Atmel's ISP programming; however, some require high voltage programming with the reset line disconnected. The Atmel AVR Dragon, MiniPro TL866CS, or any of several clone HV programmers sold on Ebay can all do this for you, but it may just be cheaper and more convenient for you to throw out that chip and buy a new one.
 

Offline hlavac

  • Frequent Contributor
  • **
  • Posts: 536
  • Country: cz
Re: Problem with another Mega32
« Reply #2 on: February 22, 2013, 10:41:49 pm »
This is exactly why I bought AVR Dragon.
Screwed up too many fuses with dodgy cheap ISP programmers for it to pay for itself in saved chips...
I have soldered a ZIF socket to it and made a few PCB adapters that connect the right pins for chips I use most to avoid the (mis)wiring...
Good enough is the enemy of the best.
 

Offline fmaimon

  • Supporter
  • ****
  • Posts: 165
  • Country: br
Re: Problem with another Mega32
« Reply #3 on: February 22, 2013, 11:18:54 pm »
If you drive the clock externally with, say 1 MHz, you shouldn't have problem programming it. Remember that the clock have to be at least 4 times higher than the ISP frequency. If all fails, you can check this: http://hackaday.com/2010/05/17/magically-repair-avr-chips/
 

Offline bogdan2013Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ro
  • Always is someone better than you !
Re: Problem with another Mega32
« Reply #4 on: February 23, 2013, 10:36:46 am »
I solved the problem ! I used a external RC oscillator (that from datasheet of mega32) with 22 pF cap and 50 KOhm resistor . I put the ISP frequency to 7 KHz and the Clock generator to 180 KHz . I put the default clock 1 MHz and now is working fine !
Thanks guys !
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 10220
  • Country: nz
Re: Problem with another Mega32
« Reply #5 on: February 23, 2013, 08:55:59 pm »
You need high voltage programming only if you have disabled serial programming or disabled the reset pin functionality.
Greek letter 'Psi' (not Pounds per Square Inch)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf