avrdude ftdi showing avrftdi_open and write_flush message, then hangs

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I compiled the latest avrdude-6.3 with these configure options:

./configure CFLAGS="-g -O2 -DSUPPORT_FT245R" LIB="./libftd2xx.a.0.4.16 -lpthread -ldl -lrt"

then I ran this script:

sudo ./avrdude -v -v -v -v  -c avrftdi -C avrdude.conf +atmega328p.conf -P /dev/ttyUSB0 -p m328p $1 $2 $3

and got this output just before it hangs:

avrdude: Version 6.1, compiled on Mar 14 2017 at 13:20:17
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "avrdude.conf"
         User configuration file is "/home/dan/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : avrftdi
avrdude: Warning: using PID 0x6001, ignoring remaining PIDs in list
I avrftdi_open(713): Using device VID:PID 0403:6001 and SN '(null)' on interface A.
D write_flush(478): Setting pin direction (0x0000) and value (0x0000)
T write_flush(490): Set pins command: 80 00 00 82 00 00

I think it might have something to do with how my pins are set (or do I need to include the serial number):

programmer
  id         = "avrftdi";
  desc       = "FT2232D based generic programmer";
  type       = "avrftdi";
  connection_type = usb;
  usbvid     = 0x0403;
  usbpid     = 0x6001;
  usbvendor  = "";
  usbproduct = "";
  usbdev     = "A";
  usbsn      = "";
#ISP-signals - lower ADBUS-Nibble (default)
  reset  = 3;
  sck    = 0;
  mosi   = 1;
  miso   = 2;
udevadm info --attribute-walk -n /dev/ttyUSB0 | sed -n '/FTDI/,/serial/p'
    ATTRS{manufacturer}=="FTDI"
    ATTRS{removable}=="unknown"
    ATTRS{idProduct}=="6001"
    ATTRS{bDeviceClass}=="00"
    ATTRS{product}=="FT232R USB UART"

  looking at parent device '/devices/pci0000:00/0000:00:1d.1/usb7':
    KERNELS=="usb7"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{devpath}=="0"
    ATTRS{idVendor}=="1d6b"
    ATTRS{speed}=="12"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{authorized_default}=="1"
    ATTRS{busnum}=="7"
    ATTRS{devnum}=="1"
    ATTRS{configuration}==""
    ATTRS{bMaxPower}=="0mA"
    ATTRS{authorized}=="1"
    ATTRS{bmAttributes}=="e0"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{maxchild}=="2"
    ATTRS{bcdDevice}=="0313"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{quirks}=="0x0"
    ATTRS{serial}=="0000:00:1d.1"

 

- Dan

Last Edited: Wed. Mar 15, 2017 - 12:03 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cross post from:
 

http://www.avrfreaks.net/forum/a...

 

Locked

Topic locked