Page 1 of 1

Adaptor not responding to upload using programmer

Posted: Thu Oct 09, 2014 12:14 am
by lukeau
After an attempted firmware upload today (using the USBasp purchased from Freematics), the OBD-II adaptor has stopped responding. Previously, firmware uploads have worked ok. Red LED is on when connected to power, have checked all leads between USBasp & Adaptor.
Error from Arduino IDE is:
avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.


I attempted to check the status of the adaptor using avrdude at the command line as follows:

Code: Select all

avrdude -p m328p -c usbasp -v

Verbose Response was:

Code: Select all

avrdude: Version 5.11, compiled on Sep  2 2011 at 18:52:52

         Using Port                    : unknown
         Using Programmer              : usbasp
         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
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : usbasp
         Description     : USBasp, http://www.fischl.de/usbasp/

avrdude: auto set sck period (because given equals null)
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.


There are a few posts on this error on Stack Exchange and they refer to resetting the fuses with the programmer.
Does anyone know if this is the problem here? If resetting/updating the fuses is the solution, how should they be set?

thanks

Luke

Re: Adaptor not responding to upload using programmer

Posted: Thu Oct 09, 2014 11:42 am
by lukeau
Update. Tried reading the fuse bytes using:

Code: Select all

avrdude -p m328p -c usbasp -v -C ../etc/avrdude.conf -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h -U lock:r:-:h

Still getting the same 'target doesn't answer' error as before.

Edit:
I tried the same command with the same USBasp and cable on a separate Uno. It was able to read the Uno OK. So the problem is with the OBD-II device - it appears to be dead.

Any help please?