Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

"Bricked" Xmega

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
AndersL

Bascom Member



Joined: 25 Jan 2010
Posts: 89
Location: KragerÝ,Norway

norway.gif
PostPosted: Fri May 13, 2011 2:30 pm    Post subject: "Bricked" Xmega Reply with quote

Hi all,
I've posted q question about this in the AVR section, but very few reads there, so please apologize me for trying here:
I have a Xmega128A1 that refuse PDI programming, but people seems to agree that this could not happen.
If it is a way to mess up the fuses and therefore dissable PDI, will
JTAG programming have precedence over PDI and wake up the Xmega?

_________________
Anders
Back to top
View user's profile
rsavas

Bascom Member



Joined: 10 Aug 2010
Posts: 197
Location: Baldwin, Ontario

canada.gif
PostPosted: Fri May 13, 2011 8:02 pm    Post subject: RE: "Bricked" Xmega Reply with quote

Hello,

Explain what you are doing and using to program your device. Provide a simple schematic, your code, what does the programmer report after you attempt to program the device. This information will help the people on this forum understand what your particular operating environment is and your methods. I myself am relatively new to using the xm128a1 processor and the operating environment but I had no problem programming the MPU using the AVRISP MkII device in PDI mode, using AVR Studio 4. I used some sample code available from the installation directories as my source.

As far JTAG programming goes, this is dependant on fuse settings. If I remember correctly, I believe that the device is shipped with JTAG enabled and that you have to disable JTAG explicitly during a programming operation. Not 100% sure, but either JTAG or PDI programming can be done independant of each other.

Good Luck
Rick
Back to top
View user's profile
JC

Bascom Member



Joined: 15 Dec 2007
Posts: 490
Location: Cleveland, OH

usa.gif
PostPosted: Sun May 15, 2011 12:16 pm    Post subject: Reply with quote

Did you successfully connect and program the Xmega board with the programmer you are using before it stopped working? (Has the setup ever worked?)

As far as I know the PDI can not be disabled. As mentioned above, however, JTAG can be disabled.

The Xmega can not be "bricked" like the Megas and Tinies by setting the fuses for a clock which does not exist. They always power up on their internal RC Osc at 2 MHz.

It MAY be possible to "Brick" an Xmega by setting the Brownout Detector to 3.2 V and then running the Xmega at a lower voltage. This would cause it to continuously be in a Brownout reset state.

If this was the case, you could power the Xmega at > 3.2 V to restore it. Vmax is 3.6 V for the Xmegas, but you do not want to run it at that voltage for long.

JC
Back to top
View user's profile Visit poster's website
AndersL

Bascom Member



Joined: 25 Jan 2010
Posts: 89
Location: KragerÝ,Norway

norway.gif
PostPosted: Thu May 19, 2011 3:12 pm    Post subject: Reply with quote

Hi,
I've programmed several Xmegas with my AVRISP MkII before without
any problem.
This problem is with a XMEGA-A1 XPLAINED board that I'm trying to modify.
My searches also ended up with that the only way to brick a xmega
could possible be to high BOD.

I'll guess I gave to try to run on 3.6V to test the BOD theory.

_________________
Anders
Back to top
View user's profile
Kiedro

Bascom Member



Joined: 08 Mar 2006
Posts: 81

germany.gif
PostPosted: Fri May 20, 2011 10:17 pm    Post subject: Reply with quote

I share this experience. The best is to use the Bootloader on the Xmega A1 Xplained which is compatible with FLIP.
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum