Error: "No libftdi or libusb support"Programming Atmega328p u with FTDI ft232r.

Hello,

I have already bootloaded atmega328p u chip and i want to program it with (rees) FTDI ft232r.
but while uploading sketch from arduino ide-1.8.12 it gives me an error:

Arduino: 1.8.12 (Linux), Board: "ATmega328, ATmega328P, 8 MHz (internal), B.O.D. Disabled"
.
.
.
.
/opt/arduino-1.8.12/hardware/tools/avr/bin/avrdude -C/opt/arduino-1.8.12/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cft232r_mod {program.extra_params} -Uflash:w:/tmp/arduino_build_814761/sketch_jun04a.ino.hex:i
An error occurred while uploading the sketch
avrdude: Version 6.3-20190619
** Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/**
** Copyright (c) 2007-2014 Joerg Wunsch**
** System wide configuration file is "/opt/arduino-1.8.12/hardware/tools/avr/etc/avrdude.conf"**
** User configuration file is "/home/kali-root/.avrduderc"**
** User configuration file does not exist or is not a regular file, skipping**
** Using Port : usb**
** Using Programmer : ft232r_mod**
avrdude: error: no libftdi or libusb support. Install libftdi1/libusb-1.0 or libftdi/libusb and run configure/make again.
avrdude done. Thank you.

I tried so many thing:

  1. First time when i try to upload sketch it gives me an error: (something stk500) then i check on google then i modified
    avrdude.conf file to add ftdi ft232r programmer:
programmer
  id    = "ft232r_mod";
  desc  = "FT232R Synchronous BitBang";
  type  = "ftdi_syncbb";
  connection_type = usb;
  miso  = 1;  # RxD
  sck   = 0;  # RTS
  mosi  = 2;  # TxD
  reset = 3;  # DTR
;

yashraj43:
then i check on google then i modified
avrdude.conf file to add ftdi ft232r programmer

That's not the solution to your original problem, and it has now caused a whole new problem. Please undo your modifications to avrdude.conf.

After that, do this:
Please do this:

  • (In the Arduino IDE) File > Preferences
  • Uncheck the checkbox next to "Show verbose output during: compilation"
  • Check the checkbox next to "Show verbose output during: upload
  • Click "OK"
  • Sketch > Upload
  • After the upload fails, you'll see a button on the right side of the orange bar "Copy error messages" (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button.
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the upload output between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.
avrdude -C/opt/arduino-1.8.12/hardware/tools/avr/etc/avrdude.conf -v -patmega328p [color=red]-cft232r_mod[/color] ...

The highlighted part indicates that you have used "upload using programmer", which is NOT what you want to be using if you've already uploaded the bootloader.
(which is why you should follow Pert's advice and go back to the original problem...)