avrdude-dev
[Top][All Lists]
Advanced

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

Re: [avrdude-dev] Problems with Avrdude error usb_bulk_read


From: Xiaofan Chen
Subject: Re: [avrdude-dev] Problems with Avrdude error usb_bulk_read
Date: Fri, 23 Dec 2011 22:09:53 +0800

On Fri, Dec 23, 2011 at 3:48 PM, Joerg Wunsch <address@hidden> wrote:
> As Ed wrote:
>
>> avrdude: jtagmkII_getsync(): Sending sign-on command: avrdude:
>> usb_fill_buf(): usb_bulk_read() error usb_bulk_read: An error occured
>> during read (see messages above)
>
> I wonder how MacOS X handles device permissions.  This smells like a
> permission problem to me: all the generic stuff to find out about the
> devices works (using the control endpoint), but actual data transfer
> (using the bulk endpoints) doesn't.
>
> Does it work if you run it as root (e.g. through sudo)?
>

I think sudo is not needed. Here is a simple run log (without doing any
real thing). This is my first try with avrdude on the Mac, usbkey
(AT90USB1287 target).


Xiaofans-Mac-mini:avrdude_test xiaofanc$ avrdude -v -v -p usb1287 -P
usb -c dragon_jtag

avrdude: Version 5.11.1, compiled on Dec 12 2011 at 22:54:17
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

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

         Using Port                    : usb
         Using Programmer              : dragon_jtag
avrdude: jtagmkII_dragon_open()
avrdude: usbdev_open(): Found AVRDRAGON, serno: 00A200001487
avrdude: usbdev_open(): using read endpoint 0x82
avrdude: jtagmkII_getsync(): Sending sign-on command: 0x86 (26 bytes msg)
JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        255
  firmware version:              7.14
  hardware version:              1
S_MCU:
  boot-loader FW version:        255
  firmware version:              7.14
  hardware version:              2
Serial number:                   00:a2:00:00:14:87
Device ID:                       AVRDRAGON
avrdude: jtagmkII_getsync(): Using a 298-byte device descriptor
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm(): Sending set parameter command (parm 0x03,
1 bytes): 0x80 (1 bytes msg)
avrdude: jtagmkII_getsync(): Sending get sync command: 0x80 (1 bytes msg)
         AVR Part                      : AT90USB1287
         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  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------
----- ----- ---------
           eeprom        65    10     8    0 no       4096    8      0
 9000  9000 0x00 0x00
           flash         65     6   256    0 yes    131072  256    512
 4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0
 9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0
 9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0
 9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0
 9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0
    0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0
    0     0 0x00 0x00

         Programmer Type : DRAGON_JTAG
         Description     : Atmel AVR Dragon in JTAG mode
avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm
0x01): 0x81 (3 bytes msg)
avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm
0x02): 0x81 (5 bytes msg)
         M_MCU hardware version: 1
         M_MCU firmware version: 7.14
         S_MCU hardware version: 2
         S_MCU firmware version: 7.14
         Serial number:          00:a2:00:00:14:87
avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm
0x06): 0x81 (3 bytes msg)
         Vtarget         : 3.2 V
avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm
0x07): 0x81 (2 bytes msg)
         JTAG clock      : 891.7 kHz (1.1 us)

avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm(): Sending set parameter command (parm 0x1b,
4 bytes): 0x80 (1 bytes msg)
avrdude: jtagmkII_set_devdescr(): Sending set device descriptor
command: 0x80 (1 bytes msg)
avrdude: jtagmkII_reset(): Sending reset command: 0x80 (1 bytes msg)
avrdude: jtagmkII_read_byte(.., hfuse, 0x1, ...)
avrdude: jtagmkII_program_enable(): Sending enter progmode command:
0x80 (1 bytes msg)
avrdude: jtagmkII_program_enable(): Sending enter progmode command:
0x80 (1 bytes msg)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: jtagmkII_initialize(): warning: OCDEN fuse not programmed,
single-byte EEPROM updates not possible
avrdude: AVR device initialized and ready to accept instructions

Reading |                                                    | 0%
0.00savrdude: jtagmkII_read_byte(.., signature, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: jtagmkII_read_byte(.., signature, 0x1, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
Reading | #################                                  | 33%
0.00savrdude: jtagmkII_read_byte(.., signature, 0x2, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9782
avrdude: jtagmkII_read_byte(.., lfuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: jtagmkII_read_byte(.., lfuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: jtagmkII_read_byte(.., lfuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: safemode: lfuse reads as 5E
avrdude: jtagmkII_read_byte(.., hfuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: jtagmkII_read_byte(.., hfuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: jtagmkII_read_byte(.., hfuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: safemode: hfuse reads as 99
avrdude: jtagmkII_read_byte(.., efuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: jtagmkII_read_byte(.., efuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: jtagmkII_read_byte(.., efuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: safemode: efuse reads as F3
avrdude: jtagmkII_read_byte(.., eeprom, 0xffc, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (9 bytes msg)
avrdude: jtagmkII_read_byte(.., eeprom, 0xffd, ...)
avrdude: jtagmkII_read_byte(.., eeprom, 0xffe, ...)
avrdude: jtagmkII_read_byte(.., eeprom, 0xfff, ...)

avrdude: jtagmkII_read_byte(.., lfuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: jtagmkII_read_byte(.., lfuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: jtagmkII_read_byte(.., lfuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: safemode: lfuse reads as 5E
avrdude: jtagmkII_read_byte(.., hfuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: jtagmkII_read_byte(.., hfuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: jtagmkII_read_byte(.., hfuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: safemode: hfuse reads as 99
avrdude: jtagmkII_read_byte(.., efuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: jtagmkII_read_byte(.., efuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: jtagmkII_read_byte(.., efuse, 0x0, ...)
avrdude: jtagmkII_read_byte(): Sending read memory command: 0x82 (2 bytes msg)
avrdude: safemode: efuse reads as F3
avrdude: safemode: Fuses OK
avrdude: jtagmkII_program_disable(): Sending leave progmode command:
0x80 (1 bytes msg)
avrdude: jtagmkII_reset(): Sending reset command: 0x80 (1 bytes msg)
avrdude: jtagmkII_close()
avrdude: jtagmkII_close(): Sending GO command: 0x80 (1 bytes msg)
avrdude: jtagmkII_close(): Sending sign-off command: 0x80 (1 bytes msg)

avrdude done.  Thank you.


Xiaofan



reply via email to

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