Stand-alone .hex file uploader for your chips - testers wanted
there seems post after post people having problems uploading sketches chips, particularly chips less "mainstream".
the project below attempts address that.
it uses uno stand-alone programmer. reads file wish program sd card (you need sd card shield, or card adapter 1 used).
you compile file in ide, copy sd card, hook chip shown, , run sketch. example session:
in case whole process took couple of seconds.

more details, , source code here:
http://www.gammon.com.au/forum/?id=11638
this bit of work-in-progress, if download , test it, feedback welcome.
you can use upload "standalone" sketches, or bootloaders.
here example of uploading larger file mega2560.
the whole process took 50 seconds.
the project below attempts address that.
it uses uno stand-alone programmer. reads file wish program sd card (you need sd card shield, or card adapter 1 used).
you compile file in ide, copy sd card, hook chip shown, , run sketch. example session:
code: [select]
atmega hex file uploader.
written nick gammon.
version 1.0
reading sd card ...
hex files in root directory:
blink2~1.hex : 4595 bytes. created: 2012-05-11 07:47:40. modified: 2012-05-11 10:50:06
opti328.hex : 1467 bytes. created: 2011-11-29 10:11:44. modified: 2011-11-29 10:11:44
mega2560.hex : 22989 bytes. created: 2011-11-29 10:11:44. modified: 2011-11-29 10:11:44
atmega8.hex : 2870 bytes. created: 2011-11-29 10:11:44. modified: 2011-11-29 10:11:44
lilypad.hex : 5484 bytes. created: 2010-09-25 22:52:34. modified: 2010-09-25 22:52:34
sketch~1.hex : 170228 bytes. created: 2012-05-11 09:40:24. modified: 2012-05-11 09:40:24
large_~1.hex : 170228 bytes. created: 2012-05-11 10:54:48. modified: 2012-05-11 10:54:48
blink3.hex : 3061 bytes. created: 2012-05-11 11:08:00. modified: 2012-05-11 11:08:00
---------
attempting enter programming mode ...
entered programming mode ok.
signature = 0x1e 0x95 0x0f
processor = atmega328p
flash memory size = 32768 bytes.
lfuse = 0xe2
hfuse = 0xdb
efuse = 0xfd
lock byte = 0xff
---------
choose file [ ] ...
processing file: blink3.hex
checking file ...
##
lowest address = 0x0
highest address = 0x439
bytes write = 1082
no bootloader.
suggest making high fuse = 0xdb
type 'v' verify, or 'g' program chip file ...
processing file: blink3.hex
erasing chip ...
writing flash ...
#########
written.
processing file: blink3.hex
verifying flash ...
########
no errors found.
no bootloader.
setting high fuse = 0xdb
done.
in case whole process took couple of seconds.
more details, , source code here:
http://www.gammon.com.au/forum/?id=11638
this bit of work-in-progress, if download , test it, feedback welcome.
you can use upload "standalone" sketches, or bootloaders.
here example of uploading larger file mega2560.
code: [select]
atmega hex file uploader.
written nick gammon.
version 1.0
reading sd card ...
hex files in root directory:
blink2~1.hex : 4595 bytes. created: 2012-05-11 07:47:40. modified: 2012-05-11 10:50:06
opti328.hex : 1467 bytes. created: 2011-11-29 10:11:44. modified: 2011-11-29 10:11:44
mega2560.hex : 22989 bytes. created: 2011-11-29 10:11:44. modified: 2011-11-29 10:11:44
atmega8.hex : 2870 bytes. created: 2011-11-29 10:11:44. modified: 2011-11-29 10:11:44
lilypad.hex : 5484 bytes. created: 2010-09-25 22:52:34. modified: 2010-09-25 22:52:34
sketch~1.hex : 170228 bytes. created: 2012-05-11 09:40:24. modified: 2012-05-11 09:40:24
large_~1.hex : 170228 bytes. created: 2012-05-11 10:54:48. modified: 2012-05-11 10:54:48
blink3.hex : 3061 bytes. created: 2012-05-11 11:08:00. modified: 2012-05-11 11:08:00
---------
attempting enter programming mode ...
entered programming mode ok.
signature = 0x1e 0x98 0x01
processor = atmega2560
flash memory size = 262144 bytes.
lfuse = 0xff
hfuse = 0xd9
efuse = 0xfd
lock byte = 0xff
---------
choose file [ ] ...
processing file: large_~1.hex
checking file ...
################################################################
###############################
lowest address = 0x0
highest address = 0xec65
bytes write = 60518
no bootloader.
suggest making high fuse = 0xd9
type 'v' verify, or 'g' program chip file ...
processing file: large_~1.hex
erasing chip ...
writing flash ...
################################################################
################################################################
################################################################
#############################################
written.
processing file: large_~1.hex
verifying flash ...
################################################################
################################################################
################################################################
############################################
no errors found.
no bootloader.
setting high fuse = 0xd9
done.
the whole process took 50 seconds.
damn nick, getting this!
i'm trying juggle 6 designs, cranking out new stuff!
i'm trying juggle 6 designs, cranking out new stuff!
Arduino Forum > Using Arduino > Microcontrollers > Stand-alone .hex file uploader for your chips - testers wanted
arduino
Comments
Post a Comment