Atmega168 Lockup after programming

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

Hi All,

When programming my atmega168 I switched over to use the internal 8 MHz clock sucessfully, I then erased the device, loaded in my bootloader, now the device is locked! :?
I have used this same process many times before but not enough times I think to of life'd it.

To try and recover the chip I applied an external 8MHz clock on xtal1 with the same no go result.

Due to using a MLF package on a densly populated board I don't think I can fly wire it to use the HV method from the stk500.

Any idea anyone?

using JTAGICE-MK11 and AVRISP-MK11

--

"If it wasn't for bad luck I'd have no luck at all"

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

Quote:
now the device is locked!
What do you mean locked, does your code run? If the chip is running from the internal oscillator, then applying an external clock will do nothing.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

The external crystal is not running.
I've tried all the listed ISP frequencies.

I'm getting the make sure ISP is 1/4 of the main clock freq error, and “entering program mode Failed”.
Seems to be no activity from the device, I'll check PB0 which have should been set as clock out tomorrow (I'm sure it not active either).

--

"If it wasn't for bad luck I'd have no luck at all"

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

PB0 is outputing 4MHz~ so looks like the fuse setting has got corrupted... :(

--

"If it wasn't for bad luck I'd have no luck at all"

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

Hi

Try an erase cycle on it this may remove an incorrect (protected) fuse setting and allow further programming/reading etc.

Good Luck
Stephen 8)

Codevisionavr & Avrstudio 4.18
Easyavr5A-Jtagicemk1

Call me Pedantic, But not after 9.

if Milk_Brilliant
else Codevision_Avrs==Better