avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] Problem with AVR Dragon and ATmega324p on OSX


From: Armin Stranjak
Subject: [avrdude-dev] Problem with AVR Dragon and ATmega324p on OSX
Date: Sat, 15 Nov 2008 02:12:23 +0000

Hi,

I have installed the latest AVR MacPack - 20080721 (http:// www.obdev.at/products/avrmacpack/download-de.html) and I am having a problem with avrdude connecting to ATmega324p via AVR Dragon programmer. I am using MacBook Pro with OSX Tiger v10.4.11.

The command I am using is the following:

avrdude -p m324p -c dragon_isp -P usb -B 10 -vvvv

and the reply is:

avrdude: Version 5.5, compiled on Jul 21 2008 at 19:43:37
Copyright (c) 2000-2005 Brian Dean, http:// www.bdmicro.com/

System wide configuration file is "/usr/local/ AVRMacPack-20080721/etc/avrdude.conf"
             User configuration file is "/Users/star/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

             Using Port            : usb
             Using Programmer      : dragon_isp
             Setting bit clk period: 100.0
avrdude: stk500v2_dragon_isp_open()
avrdude: usbdev_open(): Found AVRDRAGON, serno: 00A200006F2E
avrdude: jtagmkII_getsync()
avrdude: jtagmkII_getsync(): Sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: Sent: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] . [01] . [f3] . [97]
avrdude: jtagmkII_recv():

and it just hangs there.

I believe I have read every single post about similar problems - I have tried changing bitclock (-B option), uninstalling and reinstalling AVR MacPack, etc. I have tried to use avrdude 5.3.1 with the similar (although not exactly the same) results as follows:

avrdude: Version 5.3.1.osxintelhack, compiled on Feb  1 2007 at 22:30:12
Copyright (c) 2000-2005 Brian Dean, http:// www.bdmicro.com/

System wide configuration file is "/usr/local/etc/ avrdude.conf"
               User configuration file is "/Users/star/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

               Using Port            : usb
               Using Programmer      : dragon_isp
               Setting bit clk period: 10.0
avrdude: stk500v2_dragon_isp_open()
avrdude: usbdev_open(): Found AVRDRAGON, serno: 00A200006F2E
avrdude: jtagmkII_getsync()
avrdude: jtagmkII_getsync(): Sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: Sent: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] . [01] . [f3] . [97]
avrdude: jtagmkII_recv():
avrdude: usb_fill_buf(): usb_bulk_read() error usb_bulk_read: An error occured during read (see messages above)
avrdude: jtagmkII_recv(): Timeout receiving packet
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): Sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: Sent: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] . [01] . [f3] . [97]
avrdude: jtagmkII_recv():
avrdude: usb_fill_buf(): usb_bulk_read() error usb_bulk_read: An error occured during read (see messages above)
avrdude: jtagmkII_recv(): Timeout receiving packet
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): Sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: Sent: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] . [01] . [f3] . [97]
avrdude: jtagmkII_recv():
.......

and these lines just repeat ....


I've tried to use tiny85 instead of mega324p with the exactly same results.


When I tried to use WinAVR-20080610 on Win XP, avrdude works perfectly fine:


C:\> avrdude -p m324p -c dragon_isp -P usb -B 8.0 -v

avrdude: Version 5.5, compiled on Jun  9 2008 at 14:32:04
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

System wide configuration file is "C:\WinAVR-20080610\bin \avrdude.conf"


         Using Port            : usb
         Using Programmer      : dragon_isp
         Setting bit clk period: 8.0
avrdude: usbdev_open(): Found AVRDRAGON, serno: 00A200006F2E
JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        255
  firmware version:              1.01
  hardware version:              1
S_MCU:
  boot-loader FW version:        255
  firmware version:              1.09
  hardware version:              6
Serial number:                   00:a2:00:00:6f:2e
Device ID:                       AVRDRAGON
         AVR Part              : ATMEGA324P
         Chip Erase delay      : 9000 us
         PAGEL                 : PD7
         BS2                   : PA0
         RESET disposition     : dedicated
         RETRY pulse           : SCK
         serial program mode   : yes
         parallel program mode : yes
         Timeout               : 200
         StabDelay             : 100
         CmdexeDelay           : 25
         SyncLoops             : 32
         ByteDelay             : 0
         PollIndex             : 3
         PollValue             : 0x53
         Memory Detail         :

                                  Block Poll               Page
      Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W   ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
eeprom 65 10 128 0 no 1024 4 0 9000 90
00 0xff 0xff
flash 33 6 256 0 yes 32768 128 256 4500 45
00 0xff 0xff
lock 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
signature 0 0 0 0 no 3 0 0 0
 0 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0
 0 0x00 0x00

         Programmer Type : DRAGON_ISP
         Description     : Atmel AVR Dragon in ISP mode
         Vtarget         : 5.0 V
         SCK period      : 8.00 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.16s

avrdude: Device signature = 0x1e9508
avrdude: safemode: lfuse reads as 62
avrdude: safemode: hfuse reads as 99
avrdude: safemode: efuse reads as FF

avrdude: safemode: lfuse reads as 62
avrdude: safemode: hfuse reads as 99
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK

avrdude done.  Thank you.




Also, AVR Studio works perfectly well too without any problems (I just needed to juggle between two USB drivers a bit - Jungo one from AVR Studio and other one from WinAVR).


I would appreciate any suggestions as I was unable to find any in the posts with the similar problems.

Many thanks,
Armin Stranjak





reply via email to

[Prev in Thread] Current Thread [Next in Thread]