Firmware upgrade fails

Hi!

I've use the instructions from http://wiki.openenergymonitor.org/index.php?title=RFM12Pi_V2#Upgrading_RFM12Pi_Firmware_Direct_from_the_Pi to upgrade the firmware, but it doesn't work. 

avrdude -v  -c arduino -p ATMEGA328P -P /dev/ttyAMA0 -b 38400 -U flash:w:RF12_Demo_atmega328.cpp.hex

avrdude-original: Version 6.1, compiled on Jul  7 2015 at 10:29:47
                  Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                  Copyright (c) 2007-2014 Joerg Wunsch

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

                  Using Port                    : /dev/ttyAMA0
                  Using Programmer              : arduino
                  Overriding Baud Rate          : 38400
avrdude-original: Using autoreset DTR on GPIO Pin 7
strace: |autoreset: Broken pipe
strace: |autoreset: Broken pipe
avrdude-original: stk500_recv(): programmer is not responding

What can be wrong?  

travisn08's picture

Re: Firmware upgrade fails

Bump - The same is happening for me.

pb66's picture

Re: Firmware upgrade fails

See "avrdude-original: Using autoreset DTR on GPIO Pin 7" it may apply. Depending on when your autoreset script was installed it maybe a 0.12s or 0.3s (or maybe 0.32s) pulse, since you are using avrdude 6.1 it should be 0.3s, you can edit it manually at /usr/bin/autoreset changing the line "time.sleep(0.12)" to "time.sleep(0.3)".

Paul

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.