[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H
From: |
Hannes Weisbach |
Subject: |
Re: [avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062 |
Date: |
Thu, 25 Aug 2011 12:06:11 +0200 |
Am 24.08.2011 um 22:08 schrieb Joerg Wunsch:
> Follow-up Comment #9, patch #7486 (project avrdude):
>
> OK, I finally had a chance to try this on my FreeBSD machine
> (the Linux machines I've got access to don't allow me to
> access an unknown FTDI device).
>
> I've got an OpenOCD-USB:
>
> http://www2.embedded-projects.net/index.php?page_id=256
>
> which I believed were compatible with the "avrftdi" wiring.
>
> All I get is:
>
> % ./avrdude -p m128 -c avrftdi -C avrdude.conf -B10
>
> avrftdi.c:96 avrftdi_flush() ftdi_read_data(&ftdic, buf, 1) != 1: Device busy
> (16)
> all fine
> avrdude: initialization failed, rc=-1
> Double check connections and try again, or use -F to override
> this check.
>
>
> avrdude done. Thank you.
>
> (See attachment for full -vvvv log.)
>
> When I try the 2232HIO programmer, I get:
>
> % ./avrdude -p m128 -c 2232HIO -C avrdude.conf -B10
> avrdude failure: invalid pin definition (pin no > 11) in config file
> pin function no 7, pin no: 0xc
>
> avrdude done. Thank you.
>
The reason is, pin_direction is used unintialized. Well, technically it is
initialized; to 0. When ftdi_set_bitmode() is called, no pin is configured as
output. Which should be the case for data out, clock and reset (at least). Some
dozen lines later pin_direction is initialized with the corresponding values.
Either the initialization is moved up, or the call to ftdi_set_bitmode is moved
down.
Regards,
Hannes
- Re: [avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062, (continued)
- Re: [avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062, Joerg Wunsch, 2011/08/26
- Message not available
- Re: [avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062, Jason Hecker, 2011/08/26
- Message not available
- [avrdude-dev] AVRDUDE 5.11 (Was: [patch #7486] Patch to add FT2232C/D, FT2232H, ) FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062, Joerg Wunsch, 2011/08/27
- Re: [avrdude-dev] AVRDUDE 5.11 (Was: [patch #7486] Patch to add FT2232C/D, FT2232H, ) FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062, Jason Hecker, 2011/08/30
- Re: [avrdude-dev] AVRDUDE 5.11 (Was: [patch #7486] Patch to add FT2232C/D, FT2232H, ) FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062, Joerg Wunsch, 2011/08/31
[avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062, Doug S, 2011/08/24
- [avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062, Doug S, 2011/08/25
- [avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062, Doug S, 2011/08/25
- [avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062, Joerg Wunsch, 2011/08/25
- [avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062, Joerg Wunsch, 2011/08/25
Re: [avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062,
Hannes Weisbach <=
- Prev by Date:
Re: [avrdude-dev] [patch #7603] wiring - programmer type for Wiring boards (based on STK500v2)
- Next by Date:
Re: [avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062
- Previous by thread:
[avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062
- Next by thread:
Re: [avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062
- Index(es):