Atmega328p FT232RL invalid device identifier

Hello everyone! Newbie here.

I have this little guy that I got from my father

and I want to read it’s code, edit it and rewrite

I have: Centos 8, Arduino IDE, avrdude 6.3-20171130 (compiled today)

This guy fortunately ready as far as I found out

Atmega328p


FT232RL

avrdude -p m328p -P ft0 -c arduino-ft232r -vvv -U flash:w:flash.hex

I tried different -c : ft232r / arduino-ft232r / diecimila / uncompatino, all same result :

avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

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

         Using Port                    : ft0
         Using Programmer              : uncompatino
avrdude: <unknown>: Pin is ok.
avrdude: VCC: Pin is ok.
avrdude: BUFF: Pin is ok.
avrdude: RESET: Pin is ok.
avrdude: SCK: Pin is ok.
avrdude: MOSI: Pin is ok.
avrdude: MISO: Pin is ok.
avrdude: ERRLED: Pin is ok.
avrdude: RDYLED: Pin is ok.
avrdude: PGMLED: Pin is ok.
avrdude: VFYLED: Pin is ok.
avrdude: ft245r_open(): invalid device identifier '        '

avrdude done.  Thank you.

Also tried to add some stuff to my avrdude.conf that I got from the internet

programmer
  id    = "APU-2";
  desc  = "FT232RL with 74hc125";
  type  = "ftdi_syncbb";
  connection_type = usb;
  miso  = 4;  # выв. 2 ft232rl
  sck   = 2;  # выв. 3 ft232rl
  mosi  = 6;  # выв. 10 ft232rl
  reset = 5;  # выв. 9 ft232rl
  buff  = ~3; # выв. 11 ft232rl
;

same result

What am I missing?
Thank you!

Don't know if this will help or not.

I got this to work for me .

avrdude -pm328p -carduino-ft232r -v -v -v  -Pusb:A50285BI -Uflash:r:328.hex:i

And this:

avrdude -pm328p -carduino-ft232r -v -v -v  -Pusb:ft0 -Uflash:r:328.hex:i

Check "dmesg" for serial #A50285BI , idVendor=0403, idProduct=6001 for mine, yours may be different, but it may give you something to work with.

This is some information that I used.

https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1706129.html

Alright! Progress! Thank you, kprims!

sudo /opt/avrdude/avrdude -p m328p -C /opt/avrdude/avrdude.conf -P usb:A900HQ3E -c uncompatino -vvv -U flash:w:flash.hex
avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

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

         Using Port                    : usb:A900HQ3E
         Using Programmer              : uncompatino
         Setting bit clk period        : 4800.0
avrdude: <unknown>: Pin is ok.
avrdude: VCC: Pin is ok.
avrdude: BUFF: Pin is ok.
avrdude: RESET: Pin is ok.
avrdude: SCK: Pin is ok.
avrdude: MOSI: Pin is ok.
avrdude: MISO: Pin is ok.
avrdude: ERRLED: Pin is ok.
avrdude: RDYLED: Pin is ok.
avrdude: PGMLED: Pin is ok.
avrdude: VFYLED: Pin is ok.
avrdude: ft245r_open(): serial number parsed as: A900HQ3E
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : ftdi_syncbb
         Description     : uncompatino with all pairs of pins shorted
         Pin assignment  : 0..7 = DBUS0..7
           VCC     =  (not used)
           BUFF    =  (not used)
           RESET   =  7
           SCK     =  5
           MOSI    =  6
           MISO    =  3
           ERR LED =  (not used)
           RDY LED =  (not used)
           PGM LED =  (not used)
           VFY LED =  (not used)

avrdude: Device is not responding to program enable. Check connection.
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

Still can’t connect… Tried -c ft232r / arduino-ft232r / ft232r_mod / uncompatino

Tried to set a different bitclock and add -F, but still nothing…

If I understand correct, now I need to set correct pins to make it work…

If I understand correct, now I need to set correct pins to make it work...

Yes, but a regular ISP programmer works with a lot less effort

Get a regular ISP programmer, something like a USBasp or an Arduino to be used as "Arduino as ISP".

I can see the MOSI pin 11, MISO pin12 and SCK pin 13 are brought out on your board. Using an FTDIchip as a ISP programmer is hard to make work , at least for me .

I have a Cp2102


Good?

But, still, if I can brutforce :slight_smile: pins combination for my device to make it work the way it is now... Is there any chance to make it happen? Just curious.

Also, installed MiniCore for Arduino IDE, I don't know how to change a port from /dev/ttyUSB0 to usb:ft0 in arduino-ide. Any chance to make it work with my device?

Not good! The 2102 is not an ISP programmer.

But, still, if I can brutforce  pins combination for my device to make it work the way it is now... Is there any chance to make it happen?

Sure, you stand a pretty good chance of being able to dump the contents of the m328p chip. Take your time, find your idVendor= and idProduct= and choose the closest FTDI232 Programmer. then connect the right pins to your ISP leads and see where it takes you.

Most people will not be able to get very far trying edit it and rewriting the code.

I got good hex dumps using this. Seems to be a timing problem, but you may get your hex dump this way.

 avrdude -pm328p -carduino -v -v -v -v  -P/dev/ttyUSB0  -Uflash:r:ft232.hex:i