Hello all,
a few days ago I bricked two ATMega1284P's trying to use the Arduino IDE
with them (see
http://maniacbug.wordpress.com/2011/11/27/arduino-on-atmega1284p-4/). I
was using a USBasp clone from .cn (which worked for Arduino-on-ATTiny85,
btw).
The following takes place under Mac OS X 10.8.3 and (later, for the
Atmel Studio 6.1-part) Windows 7:
To unbrick I got myself an AVR Dragon and connected everything according
to the instructions here:
http://support.atmel.no/knowledgebase/avrstudiohelp/mergedProjects/AVRDragon/SCKT3100A3.htm
(checked the wiring and "direction" of the m1284p twice). See attached
picture.
Now, for the strange part: Inserting the m1284p into the TexTool (or the
board directly) makes the Dragon "hang", ie. it is unresponsive.
Without the 1284 avrdude works, but of course cannot talk to a device:
1 | # avrdude -c dragon_pp -p m1284p -n -v -P usb
|
2 |
|
3 | avrdude: usbdev_open(): Found AVRDRAGON, serno: 00A20002xxxx
|
4 | JTAG ICE mkII sign-on message:
|
5 | Communications protocol version: 1
|
6 | M_MCU:
|
7 | boot-loader FW version: 255
|
8 | firmware version: 7.33
|
9 | hardware version: 1
|
10 | S_MCU:
|
11 | boot-loader FW version: 255
|
12 | firmware version: 7.33
|
13 | hardware version: 7
|
14 | Serial number: 00:a2:00:02:xx:xx
|
15 | Device ID: AVRDRAGON
|
16 | AVR Part : ATMEGA1284P
|
17 | Chip Erase delay : 9000 us
|
18 | PAGEL : PD7
|
19 | BS2 : PA0
|
20 | RESET disposition : dedicated
|
21 | RETRY pulse : SCK
|
22 | serial program mode : yes
|
23 | parallel program mode : yes
|
24 | Timeout : 200
|
25 | StabDelay : 100
|
26 | CmdexeDelay : 25
|
27 | SyncLoops : 32
|
28 | ByteDelay : 0
|
29 | PollIndex : 3
|
30 | PollValue : 0x53
|
31 | Memory Detail :
|
32 |
|
33 | Block Poll Page Polled
|
34 | Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
|
35 | ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
|
36 | eeprom 65 10 128 0 no 4096 8 0 9000 9000 0xff 0xff
|
37 | flash 65 10 256 0 yes 131072 256 512 4500 4500 0xff 0xff
|
38 | lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
|
39 | lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
|
40 | hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
|
41 | efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
|
42 | signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
|
43 | calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
|
44 |
|
45 | Programmer Type : DRAGON_PP
|
46 | Description : Atmel AVR Dragon in PP mode
|
47 | Vtarget : 5.0 V
|
48 | SCK period : 1.00 us
|
49 |
|
50 | avrdude: AVR device initialized and ready to accept instructions
|
51 |
|
52 | Reading | ################################################## | 100% 0.15s
|
53 |
|
54 | avrdude: Device signature = 0xffffff
|
55 | avrdude: Yikes! Invalid device signature.
|
56 | Double check connections and try again, or use -F to override
|
57 | this check.
|
58 |
|
59 | avrdude: jtagmkII_close(): bad response to GO command: RSP_ILLEGAL_EMULATOR_MODE
|
60 |
|
61 | avrdude done. Thank you.
|
With the m1284p inserted, it goes dead on me:
1 | # avrdude -c dragon_pp -p m1284p -n -v -P usb
|
2 | avrdude: Version 5.11.1, compiled on Mar 26 2013 at 19:58:26
|
3 | Using Port : usb
|
4 | Using Programmer : dragon_pp
|
5 | avrdude: usbdev_open(): did not find any USB device "usb"
|
The same (though not as verbose ;) goes for Atmel Studio 6.1 under
Windows 7.
Any ideas what I could be doing wrong?
Thank you,
Christian.