Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
behnamkhan
PostPosted: Mar 24, 2012 - 08:04 PM
Newbie


Joined: Mar 24, 2012
Posts: 5


Dear Friends,

I have a weird issue to program my ATxmega64A3 with AVR Studio 5.0

When I using AVR Studio 4 and JTAGICE mkII to program the uC I have no problem. I could read and write Fuses and Flash easily, and when I repeat this task still there is no issue

But when I try to do the same task with AVR Studio 5, until I do not write anything to the mcu I could read it. but when I try to erase or program the fuses or any other "Writing" task, the programmer return error, and after that the mcu no work any longer !

I try it on lots of mcu and all of them stop working. I guess the AVR Studio or programmer corrupt the Fuses "even when I just try to erase device" and because of that JTAG become disabled.

My programmer do not support PDI and I couldn't test it via PDI yet. I am going to buy a PDI supported programmer as soon as possible to confirm that is Fuses issue or whole mcu damaged.

I also should tell you I did not have the problem at first, every things worked fine when I just use the system just for run time debugging. But after I decided to change one of the fuses the problem just has been raised. and after that the problem still remain even when I change the mcu several times !

I try to uninstall the AVR Studio 5 and reinstall it again, but nothing happened Sad

Have anyone any Idea? Is there any setting in AVR Studio 5 which told it to set the fuses before erase?


By the way, in the mean while until I found the issue, I decide to write my program in AVR Studio 5 but program it via AVR Studio 4. But AVR Studio 5 generate .elf file and studio 4 expect .a90

How could I force AVR Studio 5 to generate any bin file which is supportable by AVR Studio 4 ?
 
 View user's profile Send private message  
Reply with quote Back to top
meolsen
PostPosted: Mar 24, 2012 - 10:33 PM
Resident


Joined: Jul 27, 2011
Posts: 541
Location: Atmel, Norway

First, I would switch to Studio 6 beta, as there are lots of bugfixes. Also, in the project properties in Studio 5, you can choose elf,hex etc... In Studio 6, all these files are created.

_________________
:: Morten
 
 View user's profile Send private message  
Reply with quote Back to top
behnamkhan
PostPosted: Mar 25, 2012 - 05:15 AM
Newbie


Joined: Mar 24, 2012
Posts: 5


I wish I could switch to atmel studio 6. But unfortunately, my jtagice mkII programmer is a clone one by mcuzone and they didn't have driver for studio 5.1 and studio 6 yet.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits