Lost SPI contact with ATmega168

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

This is the second time I lost contact with this controller. And it is not the same desing.

Latest working fuses is: 0xF9DF62 - Built in RC, 8 MHz

Changed to 0xF995E2 - That is preserve EEPROM, BOD level 2.7V, Enable Debug Wire. My power supply is 5.2 V!
The program will start at power on but I can no longer get any access through SPI.

I suspect that there might be a bug in this controller that disable the SPI if you enable Debug Wire.

My favorites:
1. My oscilloscope, Yokogawa DLM2024.
2. My soldering iron, Weller WD2M, WMRP+WMRT.
3. JTAGICE3 debugger.

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

From JTAGICE mkII manual:
"Note: When the DWEN fuse is set, the ISP interface is disabled. This is because the debug-
WIRE must have full control over the RESET pin."

Weird that there is NO information about this in the datasheet!!!!!

Now I really hope it is possible to change the fuse bit back again!

My favorites:
1. My oscilloscope, Yokogawa DLM2024.
2. My soldering iron, Weller WD2M, WMRP+WMRT.
3. JTAGICE3 debugger.

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

you could put it back with a high voltage parallel programer

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

It is in MLF package. In other words: Very firmly soldered to the board.

I connected the mkII emulator through debugWire and there is an option in AVR Studio to remove the debugWire fuse BUT if I do that I got an error saying "can't program high byte fuse" I have attched both debugWire cables and ISP cables.

I still think there is a bug somethere. The datasheet of ATmega48/88/168 definately miss to state the fact that ISP will be disabled if you enable debugWire.

My favorites:
1. My oscilloscope, Yokogawa DLM2024.
2. My soldering iron, Weller WD2M, WMRP+WMRT.
3. JTAGICE3 debugger.