avrdude-dev
[Top][All Lists]
Advanced

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

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


From: Armin Stranjak
Subject: Re: [avrdude-dev] Problem with AVR Dragon and ATmega324p on OSX
Date: Sun, 16 Nov 2008 23:45:42 +0000

Dennis,

Thanks for your reply.

After I've spent some (too much!) time trying to get it working on Tiger, I've decided to update my Mac to Leopard (I was planning to do this for some time now and finally I found a reason :-) ) and after the update, everything works very well.

I found that other guys used to have similar problems where update to 10.5 solved their issues (see http://www.mikrocontroller.net/topic/81210)

Anyway, after the update, avrdude works perfectly well.

Thanks,
Armin



On 15 Nov 2008, at 04:58, dlc wrote:

I've had problems with AVR ISP2 on Tiger too. I'll be able to program a MEGA168 5,6 times or so and then... Avrdude hangs reading the chip. The writes don't work entirely either since the program doesn't usually get fully written to the chip. Then I unplug everything, throw salt over my left shoulder with my right hand, howl at the moon (or my computer) and every so often it will all start working again, after half a day or so. I've never been able to figure out what is going wrong. This does not happen with my Leopard system.

I'm running Tiger on a G4/1.3GHz iBook and Leopard on a 2.8GHz Core 3 duo. So this could be either a Tiger or an iBook USB problem. I've never heard anyone else mention it. Does everyone else suffer in silence or are there actually so few of us running on Mac platforms that the noise level is just low?

In the end I use my AVRISP2 on my iMac and my AVR ISP through a Keyspan USB/serial dongle on my iBook. Those two configurations are solid.

DLC

Armin Stranjak wrote:
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
_______________________________________________
avrdude-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

--
-------------------------------------------------
Dennis Clark          TTT Enterprises
www.techtoystoday.com
-------------------------------------------------





reply via email to

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