avrdude-dev
[Top][All Lists]
Advanced

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

Re: [avrdude-dev] ftdi_syncbb issues: no BUFF, wrong chip?


From: Ing. Daniel Rozsnyó
Subject: Re: [avrdude-dev] ftdi_syncbb issues: no BUFF, wrong chip?
Date: Sat, 13 Apr 2013 07:43:37 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121026 Thunderbird/16.0.2

I got no reply so I started to add the BUFF code to ft245r driver. The patch is in the attachment, I did some debug prints (one may not like the prefixes I use...) because the thing did not worked even with the BUFF signal.

In the end I realized, that for a low active BUFF, it would be enough to set the DDR to output the default zero.

Anyway, the clean ATmega32A did not responded, until I used a bitrate below or equal of 2400. That is strange, but now I get that:


         Programmer Type : ftdi_syncbb
         Description     :
         Pin assignment  : 1..8 = DBUS0..7, 9..12 = GPIO0..3
           RESET   =  5
           SCK     =  4
           MOSI    =  6
           MISO    =  7
           BUFF    =  8

 ft245r:  spi bitclk 2400 -> ft baudrate 4800
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9502
avrdude: safemode: lfuse reads as E1
avrdude: safemode: hfuse reads as 99

avrdude: safemode: lfuse reads as E1
avrdude: safemode: hfuse reads as 99
avrdude: safemode: Fuses OK

avrdude done.  Thank you.



Daniel



On 04/12/2013 06:15 PM, "Ing. Daniel Rozsnyó" wrote:
Hi,
  I have some issues with the FT232 programmer code.. I had to define a
custom pinout, and the BUFF pin is not recognized. Is that okay, or the
ftdi_syncbb does not support the BUFF pin?



programmer
   id    = "kac-cmos";
   type  = "ftdi_syncbb";
   connection_type = usb;
   miso  = 7;  # /DCD
   sck   = 4;  # /CTS
   mosi  = 6;  # /DSR
   reset = 5;  # /DTR
   buff  = 8;  # /RI
;


results in -v printout of:

          Programmer Type : ftdi_syncbb
          Description     :
          Pin assignment  : 1..8 = DBUS0..7, 9..12 = GPIO0..3
            RESET   =  5
            SCK     =  4
            MOSI    =  6
            MISO    =  7


  And the second issue is, that after that the text goes like:

  ft245r:  spi bitclk 75000 -> ft baudrate 150000
avrdude: ft245r_program_enable: failed
avrdude: initialization failed, rc=-1
          Double check connections and try again, or use -F to override
          this check.


   The chip I am using is however a FT232RQ:

Bus 003 Device 015: ID 0403:6001 Future Technology Devices
International, Ltd FT232 USB-Serial (UART) IC
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               2.00
   bDeviceClass            0 (Defined at Interface level)
   bDeviceSubClass         0
   bDeviceProtocol         0
   bMaxPacketSize0         8
   idVendor           0x0403 Future Technology Devices International, Ltd
   idProduct          0x6001 FT232 USB-Serial (UART) IC
   bcdDevice            6.00
   iManufacturer           1 FTDI
   iProduct                2 FT232R USB UART
   iSerial                 3 A4002rtk
   bNumConfigurations      1


I am using:
avrdude: Version 5.11svn, compiled on Aug 13 2012 at 21:14:46
(with FT2232 in custom configurations it works perfectly!)


Daniel

_______________________________________________
avrdude-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Attachment: ft245r.patch
Description: Text Data


reply via email to

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