View previous topic :: View next topic |
Author |
Message |
AndersL
Joined: 25 Jan 2010 Posts: 92 Location: Kragerø,Norway
|
Posted: Fri May 13, 2011 2:30 pm Post subject: "Bricked" Xmega |
|
|
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 |
|
|
rsavas
Joined: 10 Aug 2010 Posts: 197 Location: Baldwin, Ontario
|
Posted: Fri May 13, 2011 8:02 pm Post subject: RE: "Bricked" Xmega |
|
|
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 |
|
|
JC
Joined: 15 Dec 2007 Posts: 585 Location: Cleveland, OH
|
Posted: Sun May 15, 2011 12:16 pm Post subject: |
|
|
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 |
|
|
AndersL
Joined: 25 Jan 2010 Posts: 92 Location: Kragerø,Norway
|
Posted: Thu May 19, 2011 3:12 pm Post subject: |
|
|
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 |
|
|
Kiedro
Joined: 08 Mar 2006 Posts: 81
|
Posted: Fri May 20, 2011 10:17 pm Post subject: |
|
|
I share this experience. The best is to use the Bootloader on the Xmega A1 Xplained which is compatible with FLIP. |
|
Back to top |
|
|
|