Community
OpenEnergyMonitor

Community

Issues when updating emonPi

(Brian Orpin) #1

I have just run an update on a vanilla EmonPi from the update button on admin.

I see these errors

Start ATmega328 serial upload using avrdude with latest.hex
Discrete Sampling
avrdude -c arduino -p ATMEGA328P -P /dev/ttyAMA0 -b 115200 -U flash:w:/home/pi/emonpi/firmware/compiled/latest.hex
avrdude-original: Using autoreset DTR on GPIO Pin 7

avrdude-original: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude-original: Device signature = 0x1e950f (probably m328p)
avrdude-original: NOTE: "flash" memory has been specified, an erase cycle will be performed
                  To disable this feature, specify the -D option.
avrdude-original: erasing chip
avrdude-original: reading input file "/home/pi/emonpi/firmware/compiled/latest.hex"
avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex auto detected as Intel Hex
avrdude-original: writing flash (17886 bytes):

Writing | avrdude-original: stk500_loadaddr(): (a) protocol error, expect=0x14, resp=0x1c

avrdude-original: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0xe0
avrdude-original: stk500_cmd(): programmer is out of sync

The last line is repeated hundreds of times, then

avrdude-original: stk500_cmd(): programmer is out of sync
# | 100% 11.76s

avrdude-original: 17886 bytes of flash written
avrdude-original: verifying flash memory against /home/pi/emonpi/firmware/compiled/latest.hex:
avrdude-original: load data flash data from input file /home/pi/emonpi/firmware/compiled/latest.hex:
avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex auto detected as Intel Hex
avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex contains 17886 bytes
avrdude-original: reading on-chip flash data:

Reading | avrdude-original: stk500_loadaddr(): (a) protocol error, expect=0x14, resp=0x07

avrdude-original: stk500_paged_load(): (a) protocol error, expect=0x14, resp=0x00
avrdude-original: stk500_cmd(): programmer is out of sync
avr_read(): error reading address 0x0000
    read operation not supported for memory "flash"
avrdude-original: failed to read all of flash memory, rc=-2
avrdude-original: stk500_disable(): protocol error, expect=0x14, resp=0xfc
strace: |autoreset: Broken pipe
strace: |autoreset: Broken pipe
strace: |autoreset: Broken pipe
strace: |autoreset: Broken pipe
strace: |autoreset: Broken pipe

avrdude-original done.  Thank you.

strace: |autoreset: Broken pipe

Everything seems to be working fine. Has it corrected itself?

0 Likes

(Trystan Lea) #2

Yes I’ve seen this too. It didnt break anything for me and then on subsequent update worked fine.

0 Likes