forked from EnviroDIY/ModularSensors
-
Notifications
You must be signed in to change notification settings - Fork 1
Release downloads
neilh edited this page May 10, 2019
·
3 revisions
For a separately captured firmware.hex a separate procedure is needed for downloading.
For a windows PC I create a prog_mayfly.bat to do this - you may need to customize for your environment - both where the files are and what COMXXX is used.
Copy ModularSensors\arduino_update\prog_mayfly.bat to your firmware directory
rem prog_mayfly <nam.hex>
rem c:\Users\neilh77\.platformio\packages\tool-avrdude\avrdude -c stk500 -P COM10 -p m1284p %1
c:\users\neilh77\.platformio\packages\tool-avrdude\avrdude -v -p atmega1284p -C C:\Users\neilh77\.platformio\packages\tool-avrdude\avrdude.conf -c arduino -b 57600 -D -P "COM10" -U flash:w:%1:i
Tools like platformio and arduino IDE make it very easy to develop AND download a program. They usually generate a file (eg platformio generates) firmware.hex which can be copied and separately downloaded.
avrdude: Version 6.3, compiled on Sep 12 2016 at 17:24:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\neilh77\.platformio\packages\tool-avrdude\avrdude.conf"
Using Port : COM10
Using Programmer : arduino
Overriding Baud Rate : 57600
AVR Part : ATmega1284P
Chip Erase delay : 55000 us
PAGEL : PD7
BS2 : PA0
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 10 128 0 no 4096 8 0 9000 9000 0xff 0xff
flash 65 10 256 0 yes 131072 256 512 4500 4500 0xff 0xff
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 3
Firmware Version: 6.0
Vtarget : 0.3 V
Varef : 0.3 V
Oscillator : 28.800 kHz
SCK period : 3.3 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e9705 (probably m1284p)
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: reading input file "mayfly_v0.21.4_rel1_dvlp1m_190510.hex"
avrdude: writing flash (74824 bytes):
Writing | ################################################## | 100% 24.01s
avrdude: 74824 bytes of flash written
avrdude: verifying flash memory against mayfly_v0.21.4_rel1_dvlp1m_190510.hex:
avrdude: load data flash data from input file mayfly_v0.21.4_rel1_dvlp1m_190510.hex:
avrdude: input file mayfly_v0.21.4_rel1_dvlp1m_190510.hex contains 74824 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 22.43s
avrdude: verifying ...
avrdude: 74824 bytes of flash verified
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: Fuses OK (E:00, H:00, L:00)
avrdude done. Thank you.
C:\Users\neilh77\Documents\Arduino\env03\firmware>