"Bricking" the Xmega

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"Bricking" the Xmega

What? Not possible? Think again.
"Think" being the key word, and obviously NOT what I was doing last night.

It is well known that the easiest way to "Brick" a Mega or Tiny is to set the fuses to a non-existance clock source.

One can't do this in the Xmega, because they always start up on their internal RC Osc at 2 MHz.

As far as I know although the JTAG interface can be disabled, the PDI interface is always live.

So, how would one "Brick" their Xmega?

Set the Brownout Detector for 3.2 V and run it at just under that!

It will then be in a constant state of Brownout Reset, which is NOT over ridden by the PDI interface.

One then can't read the signature, or get to the Fuses to reset it.

Fortunately, it is recoverable. Just power the Xmega at 3.6 V, (> 3.2 V), and it will come alive again, allowing one to reset the Brownout threshold, or disable it altogether.

(My power supply, by the way, is 3.285 V, ( > 3.2 V), so there must be a little "error" in the 3.2 V threshold. I wasn't planning on running it that closely to the power supply, I was testing the ability to set fuses with my programmer...)

Perhaps my mentioning this will save someone else from making this blunder. :oops:

JC

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I highly recommend that you read BOD level from the device datasheet, NOT the manual. The device datasheet has actual measured values, while the manual is typical for the design.

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

haha, classic. I'll make sure to not make this mistake. Should PDI controller be able to override BOD?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

GordonFreeman wrote:
haha, classic. I'll make sure to not make this mistake. Should PDI controller be able to override BOD?
Nope, it can't, since the hardware within the device is holding everything in reset. Remember you set BOD level to make sure the device is always operating above a safe supply voltage ;) It can backfire from time to time until you get it right.

Hans-Christian