------------------------------------------------------------- emonPi_discrete_jeelib Firmware Upload ------------------------------------------------------------- Downloading firmware from: https://github.com/openenergymonitor/emonpi/releases/download/2.9.3/firmware.hex Downloaded file: -rw-r--r-- 1 pi pi 53K Dec 7 2021 /opt/openenergymonitor/data/firmware/emonPi_discrete_jeelib.hex EmonHub is running, stopping EmonHub Uploading emonPi_discrete_jeelib on serial port ttyAMA0 Attempt 1... avrdude-original: 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 "/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 : 115200 avrdude-original: Using autoreset DTR on GPIO Pin 7 avrdude-original: stk500_getsync() attempt 1 of 10: not in sync: resp=0x1c avrdude-original: stk500_getsync() attempt 2 of 10: not in sync: resp=0xe0 avrdude-original: stk500_getsync() attempt 3 of 10: not in sync: resp=0x1c avrdude-original: stk500_getsync() attempt 4 of 10: not in sync: resp=0xfc avrdude-original: stk500_getsync() attempt 5 of 10: not in sync: resp=0x7e avrdude-original: stk500_getsync() attempt 6 of 10: not in sync: resp=0xc7 avrdude-original: stk500_getsync() attempt 7 of 10: not in sync: resp=0xfc avrdude-original: stk500_getsync() attempt 8 of 10: not in sync: resp=0x0e avrdude-original: stk500_getsync() attempt 9 of 10: not in sync: resp=0xff avrdude-original: stk500_getsync() attempt 10 of 10: not in sync: resp=0xfc avrdude-original done. Thank you. strace: |autoreset: Broken pipe ERROR: Not in sync Attempt 2... avrdude-original: 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 "/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 : 115200 avrdude-original: Using autoreset DTR on GPIO Pin 7 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 : Arduino Description : Arduino Hardware Version: 3 Firmware Version: 4.4 Vtarget : 0.3 V Varef : 0.3 V Oscillator : 28.800 kHz SCK period : 3.3 us 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 "/opt/openenergymonitor/data/firmware/emonPi_discrete_jeelib.hex" avrdude-original: input file /opt/openenergymonitor/data/firmware/emonPi_discrete_jeelib.hex auto detected as Intel Hex avrdude-original: writing flash (19260 bytes): Writing | ################################################## | 100% 2.72s avrdude-original: 19260 bytes of flash written avrdude-original: verifying flash memory against /opt/openenergymonitor/data/firmware/emonPi_discrete_jeelib.hex: avrdude-original: load data flash data from input file /opt/openenergymonitor/data/firmware/emonPi_discrete_jeelib.hex: avrdude-original: input file /opt/openenergymonitor/data/firmware/emonPi_discrete_jeelib.hex auto detected as Intel Hex avrdude-original: input file /opt/openenergymonitor/data/firmware/emonPi_discrete_jeelib.hex contains 19260 bytes avrdude-original: reading on-chip flash data: Reading | ################################################## | 100% 2.03s avrdude-original: verifying ... avrdude-original: 19260 bytes of flash verified 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 SUCCESS: flash verifed Restarting EmonHub