Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Fix atmega32L fuse using universal programmer

Status
Not open for further replies.

Raj23

Newbie level 6
Joined
Aug 7, 2011
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,366
I wanted to program my Atmega32L to external crystal oscillator using Ponyprog. Targe fuse settings: high: C9 low: EF
Previously it was default factory setting: 99 E1.

When I pushed write all in fuse settings in ponyprog, I got "fuse write failed" and it did not recognize the chip after that.

I got a "Xeltek Superpro 580U" universal programmer from my college. I read my chip using this, I got the fuse settings to: FF EF. SPIEN is disabled. When I change fuse to default settings and program, it gets programmed. But when I read the chip again, I get the same fuse settings: FF EF. I think my programmer supports high voltage programming. Tell me if it is possible using hex code. I dont want to buy any stk500 or avrdragon or fusedoctor

 

Just to understand your problem correctly, is your ATMEGA32L locked?

If so connect an oscillator, not a crystal, 4MHz with do. Then erase your device with your ISP programmer and reset the CLSEL fuse.

The attached program maybe of aid as well.

BigDog
 

Attachments

  • avrospii_1053.zip
    46.5 KB · Views: 37

Its not exactly locked. My chip is recognized only by the universal programmer, not by any spi programmer like serial programming using ponyprog or usbasp.
When I program a hex file (using universal prog) to light any LED (PD7 or PD6) it gets lighted. But when I tell it to flash (1s delay), it does not flash and I have a 12 Mhz crystal attached to my circuit.
 

I change the fuse bits and program it. But when I read it it gets back to same value as if it has not been changed.
Is there a special procedure to change fuse bis? like you have to change a certain bit before changing fuse bits
 

My programmer is a 35000 rupees programmer. Im sure it can do the work. For comparison an atmega32 costs 180 rupees here. I have told you previously I dont want to buy any other circuit
 

I change the fuse bits and program it. But when I read it it gets back to same value as if it has not been changed.
Is there a special procedure to change fuse bis? like you have to change a certain bit before changing fuse bits

Are you sure that you are saving/writing the new fuse configuration to the device? Using a programmer like the Xeltek usually takes care of the problem.

When using the Xeltek are you resetting all the fuses to the factory default? Or just attempting to correct one or two?

BigDog
 

I change the fuse settings manually to 99 E1, which is the factory default (atmega16 datasheet), as the programmer software does not have any reset to default option.
 

I change the fuse settings manually to 99 E1, which is the factory default (atmega16 datasheet), as the programmer software does not have any reset to default option.

You're correct that is the default setting for an ATMEGA32. Obviously, these correct fuse settings are not actually being programmed into the device.

So why not contact Xeltek and explain your problem and have them troubleshoot the issue with their programmer?

I use a Data I/O 3900, so I can't advise you in regards to the Xeltek.

BigDog
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top