瀏覽代碼

Changed 1284p fuse setting for Arduino_1.x.x

- Remove the two version of 16mHz. Crystal and resonator use the same
fuse setting. Also, Arduino IDE only showed the first one 16Mhz as a
board option.

- Added 20Mhz board option.

Symptoms for incorrect fuse setting:
- X axis move in one direction
- limit switches fail to trigger
- unable to reprogram the device via bootloader
- stops working when the reset switch is pressed.
- device fails to bootup when power by a slow raise power supply.

Solution:
- Disabled the jtag
- set the correct clock selection bit
- set the correct bootloader memory size
- enable brown-out setting
- enable clock power up delay
Ronald 11 年之前
父節點
當前提交
c2b3e88787
共有 1 個檔案被更改,包括 21 行新增23 行删除
  1. 21
    23
      ArduinoAddons/Arduino_1.x.x/hardware/Sanguino/boards.txt

+ 21
- 23
ArduinoAddons/Arduino_1.x.x/hardware/Sanguino/boards.txt 查看文件

27
 atmega12848m.upload.maximum_size=131072
27
 atmega12848m.upload.maximum_size=131072
28
 atmega12848m.upload.speed=19200
28
 atmega12848m.upload.speed=19200
29
 
29
 
30
-atmega12848m.bootloader.low_fuses=0xFD
31
-atmega12848m.bootloader.high_fuses=0x9A
32
-atmega12848m.bootloader.extended_fuses=0xFF
30
+atmega1284.bootloader.low_fuses=0xD6
31
+atmega1284.bootloader.high_fuses=0xDA
32
+atmega1284.bootloader.extended_fuses=0xFD
33
 atmega12848m.bootloader.path=atmega
33
 atmega12848m.bootloader.path=atmega
34
 atmega12848m.bootloader.file=ATmegaBOOT_168_atmega1284p_8m.hex
34
 atmega12848m.bootloader.file=ATmegaBOOT_168_atmega1284p_8m.hex
35
 atmega12848m.bootloader.unlock_bits=0x3F
35
 atmega12848m.bootloader.unlock_bits=0x3F
48
 atmega1284.upload.maximum_size=131072
48
 atmega1284.upload.maximum_size=131072
49
 atmega1284.upload.speed=57600
49
 atmega1284.upload.speed=57600
50
 
50
 
51
-atmega1284.bootloader.low_fuses=0xFF
52
-atmega1284.bootloader.high_fuses=0x9A
53
-atmega1284.bootloader.extended_fuses=0xFF
51
+atmega1284.bootloader.low_fuses=0xD6
52
+atmega1284.bootloader.high_fuses=0xDA
53
+atmega1284.bootloader.extended_fuses=0xFD
54
 atmega1284.bootloader.path=atmega
54
 atmega1284.bootloader.path=atmega
55
 atmega1284.bootloader.file=ATmegaBOOT_168_atmega1284p.hex
55
 atmega1284.bootloader.file=ATmegaBOOT_168_atmega1284p.hex
56
 atmega1284.bootloader.unlock_bits=0x3F
56
 atmega1284.bootloader.unlock_bits=0x3F
60
 atmega1284.build.f_cpu=16000000L
60
 atmega1284.build.f_cpu=16000000L
61
 atmega1284.build.core=arduino
61
 atmega1284.build.core=arduino
62
 atmega1284.build.variant=standard
62
 atmega1284.build.variant=standard
63
-#
64
-
65
 ##############################################################
63
 ##############################################################
66
 
64
 
67
-atmega1284.name=Sanguino W/ ATmega1284p 16mhz ceramic resonator
65
+atmega1284m.name=Sanguino W/ ATmega1284p 20mhz
68
 
66
 
69
-atmega1284.upload.protocol=stk500
70
-atmega1284.upload.maximum_size=131072
71
-atmega1284.upload.speed=57600
67
+atmega1284m.upload.protocol=stk500
68
+atmega1284m.upload.maximum_size=131072
69
+atmega1284m.upload.speed=57600
72
 
70
 
73
-atmega1284.bootloader.low_fuses=0xD6
74
-atmega1284.bootloader.high_fuses=0xDC
75
-atmega1284.bootloader.extended_fuses=0xFD
76
-atmega1284.bootloader.path=atmega
77
-atmega1284.bootloader.file=ATmegaBOOT_168_atmega1284p.hex
78
-atmega1284.bootloader.unlock_bits=0x3F
79
-atmega1284.bootloader.lock_bits=0x0F
71
+atmega1284m.bootloader.low_fuses=0xD6
72
+atmega1284m.bootloader.high_fuses=0xDA
73
+atmega1284m.bootloader.extended_fuses=0xFD
74
+atmega1284m.bootloader.path=atmega
75
+atmega1284m.bootloader.file=ATmegaBOOT_168_atmega1284p.hex
76
+atmega1284m.bootloader.unlock_bits=0x3F
77
+atmega1284m.bootloader.lock_bits=0x0F
80
 
78
 
81
-atmega1284.build.mcu=atmega1284p
82
-atmega1284.build.f_cpu=16000000L
83
-atmega1284.build.core=arduino
84
-atmega1284.build.variant=standard
79
+atmega1284m.build.mcu=atmega1284p
80
+atmega1284m.build.f_cpu=20000000L
81
+atmega1284m.build.core=arduino
82
+atmega1284m.build.variant=standard
85
 #
83
 #

Loading…
取消
儲存