From: Mikey S. <sk...@el...> - 2005-10-23 04:29:34
|
I have been trying to get avarice going on my Mac, and I'm getting pretty close. Right now when I try to talk to the mkII/stk500 I get a "No configuration available for device ID: ffff". It seems from looking at the avarice source that my MCU is not being discovered. BTW, I've also noticed I need to unplug the USB adapter after each time I invoke avarice in order to run the command again. Details below. ----- setup ----- OS: Mac OS X (10.4.2) ICE: Atmel jtag ice mkII Programmer: stk500 SW: avarice cvs 20051022 usb2db9 adapter: Keyspan USA-19HS part: atmega32 Command: sudo avarice --debug --part atmega32 --erase --program \ --file tiny_pov.hex --mkII --jtag /dev/cu.USA19H4b11P1.1 \ --jtag-bitrate 250KHz :4242 ----------- short error ----------- JTAG id = 0xFFFFFFFF : Ver = 0xf : Device = 0xffff : Manuf = 0x7ff Reported JTAG device ID: 0xFFFF No configuration available for device ID: ffff --------------------- Full Error with debug ---------------------- $ make burn_ice sudo avarice --debug --part atmega32 --erase --program --file tiny_pov.hex --mkII --jtag /dev/cu.USA19H4b11P1.1 --jtag-bitrate 250KHz :4242 AVaRICE version 2.3.20050527, Oct 22 2005 14:55:01 JTAG config starting. Attempting synchronisation at bitrate 19200 command[0x01, 1]: 01 recv: 0xbf command[0x01, 2]: 01 recv: 0xbf command[0x01, 3]: 01 recv: 0xbf Attempting synchronisation at bitrate 115200 command[0x01, 1]: 01 recv: 0x1b recv: 0x00 recv: 0x00 recv: 0x1c recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 28 bytes recv: 0xc9 recv: 0xd4 CRC OK Got message seqno 0 (command_sequence == 0) response: 86 01 FF 00 04 00 FF 01 04 00 00 A0 00 00 26 C2 4A 54 41 47 49 43 45 6D 6B 49 49 00 Found a device: JTAGICEmkII Serial number: 00:a0:00:00:26:c2 JTAG ICE mkII sign-on message: Communications protocol version: 1 M_MCU: boot-loader FW version: 255 firmware version: 4.00 hardware version: 0 S_MCU: boot-loader FW version: 255 firmware version: 4.01 hardware version: 0 command[0x02, 1]: 02 03 01 recv: 0x1b recv: 0x01 recv: 0x00 recv: 0x01 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 1 bytes recv: 0xcd recv: 0x83 CRC OK Got message seqno 1 (command_sequence == 1) response: 80 command[0x02, 1]: 02 05 07 recv: 0x1b recv: 0x02 recv: 0x00 recv: 0x01 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 1 bytes recv: 0x1d recv: 0x09 CRC OK Got message seqno 2 (command_sequence == 2) response: 80 command[0x0a, 1]: 0A 01 recv: 0x1b recv: 0x03 recv: 0x00 recv: 0x01 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 1 bytes recv: 0xa2 recv: 0x88 CRC OK Got message seqno 3 (command_sequence == 3) response: 80 Automatic device detection: command[0x03, 1]: 03 0E recv: 0x1b recv: 0xff recv: 0xff recv: 0x06 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 6 bytes recv: 0x82 recv: 0x16 CRC OK Got message seqno 65535 (command_sequence == 4) got asynchronous event: 0xe0 recv: 0x1b recv: 0x04 recv: 0x00 recv: 0x05 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 5 bytes recv: 0xbc recv: 0x9b CRC OK Got message seqno 4 (command_sequence == 4) response: 81 FF FF FF FF JTAG id = 0xFFFFFFFF : Ver = 0xf : Device = 0xffff : Manuf = 0x7ff Reported JTAG device ID: 0xFFFF No configuration available for device ID: ffff make: *** [burn_ice] Error 1 ------ Hookup ------ - ATmega32 goes into STK500 SCKT3100A3 - Jtag ICE MKII uses USB cable for power - Jtag ICE MKII uses serial db9 for debug - Jtag ICE connects to Keyspan USA-19HS - Jtag ICE connects squid cable connects to stk500 * PIN-1 black (TCK) -> ISP6pin SPROG3 PIN-3 (SCK) * PIN-2 white (GND) -> ISP6pin SPROG3 PIN-6 (GND) * PIN-3 grey (TDO) -> ISP6pin SPROG3 PIN-1 (MISO) * PIN-4 purple (VTref) -> ISP6pin SPROG3 PIN-2 (Vcc) * PIN-6 green (nSRST) -> ISP6pin SPROG3 PIN-5 (Reset) * PIN-9 red (TDI) -> ISP6pin SPROG3 PIN-4 (MOSI) |