comparison Makefile @ 41:d07aa7644c66

bit more fiddling
author Matt Johnston <matt@ucc.asn.au>
date Fri, 28 Jun 2013 23:16:00 +0800
parents cce426bb6d3e
children a0f2fcc6d9dd
comparison
equal deleted inserted replaced
40:5a7a0ef8a958 41:d07aa7644c66
36 FUSES = -U hfuse:w:0xd9:m -U lfuse:w:0x77:m -U efuse:w:0xfd:m 36 FUSES = -U hfuse:w:0xd9:m -U lfuse:w:0x77:m -U efuse:w:0xfd:m
37 37
38 #LOCKBIT 38 #LOCKBIT
39 # prevent bootloader write protect: 39 # prevent bootloader write protect:
40 # -U lock:w:0x2f:m 40 # -U lock:w:0x2f:m
41 # 0 unused bit7 41 # X unused bit7
42 # 0 unused 42 # X unused
43 # 1 blb12 no writing to bootloader 43 # 1 blb12 no writing to bootloader
44 # 0 blb11 44 # 0 blb11
45 # 1 blb02 bootloader can write to app 45 # 1 blb02 bootloader can write to app
46 # 1 blb01 46 # 1 blb01
47 # 1 lb2 external serial prog unrestricted 47 # 1 lb2 external serial prog unrestricted
59 # 0 lb1 bit0 59 # 0 lb1 bit0
60 60
61 # ATMega8 fuse bits used above (fuse bits for other devices are different!): 61 # ATMega8 fuse bits used above (fuse bits for other devices are different!):
62 # Example for 8 MHz internal oscillator 62 # Example for 8 MHz internal oscillator
63 # Fuse high byte: 63 # Fuse high byte:
64 # 0xd9 = 1 1 0 1 1 0 0 1 <-- BOOTRST (boot reset vector at 0x0000) 64 # 0xdb = 1 1 0 1 1 0 1 1 <-- BOOTRST (boot reset vector at 0x0000)
65 # ^ ^ ^ ^ ^ ^ ^------ BOOTSZ0 65 # ^ ^ ^ ^ ^ ^ ^------ BOOTSZ0 (2048 bytes bootloader)
66 # | | | | | +-------- BOOTSZ1 66 # | | | | | +-------- BOOTSZ1
67 # | | | | +---------- EESAVE (set to 0 to preserve EEPROM over chip erase) 67 # | | | | +---------- EESAVE (set to 0 to preserve EEPROM over chip erase)
68 # | | | +-------------- WDTON 68 # | | | +-------------- WDTON
69 # | | +---------------- SPIEN (if set to 1, serial programming is disabled) 69 # | | +---------------- SPIEN (if set to 1, serial programming is disabled)
70 # | +------------------ DWEN 70 # | +------------------ DWEN