ftdi - Download program into AVR chip with FTDI4232 -
background info
- winavr: installed winavr, , use avrdude.exe comes winavr download program our board.
- adapter card: have adapter card ftdi4232 , avr m328p on it. pc connects ftdi4232 micro usb cable.
- schematic: sorry, cannot post pics. describe major part of schematic here. 2 wires from(data_p & data_n pins) out macro usb connector dp[pin8] , dm[pin7] on 4232. , 4 wires(sck, mosi, miso, ss_n) out 4232 m328p.
- how download program card before: via pocket programmer. cannot give 1 pocket programmer every engineer, try find out way download program m328p. coz have had ftdi4232 on board, seems best choice.
can download program via ftdi4232 on adapter card?
- i know there dedicated programmer based on 4232 chip, our own design, not sure can or not according above schematic.
what did
- run command: c:\winavr-20100110\bin\avrdude.exe -c 4232h -p m328p -u flash:w:\desktop\work\a_card\winavr\blink\blink.hex:i got following error: avrdude.exe: error: no libftdi or libusb support. install libftdi1/libusb-1.0 or libftdi/libusb , run configure/make again.
- then, download compiled libftdi package link: https://code.google.com/p/picusb/downloads/detail?name=libftdi1-1.0_devkit_mingw32_17feb2013.zip , , extract “compiled_libftdi”.
- there not info how use compiled package, found info online. (1) installed winusb driver first 2 ports of 4232 zadig. can choose 1 port in drop down menu, choose “winusb(v6.1,7600…)”, “install wcid driver”. (2) then, enter “compiled_libftdi” folder, run “find_all”, saw: number of ftdi devices found:1 checking device: 0 manufactureer: ftdi, description: usb <-> serial converter think means usb driver libftdi package installed successfully.
- run above download command again, still failed.
- i thought maybe because avrdude.exe out of date. download .exe here: http://download.savannah.gnu.org/releases/avrdude/avrdude-6.0.1-mingw32.zip , replace old 1 in winavr folder.
- still got error, got 1 line info: avrdude.exe: programmer operation not supported
Comments
Post a Comment