Skip to content

Commit a6d979e

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents d874c59 + c3fe5dc commit a6d979e

File tree

4 files changed

+86
-47
lines changed

4 files changed

+86
-47
lines changed

Arduino.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ reset_stty:
15311531
$$STTYF $(call get_monitor_port) -hupcl
15321532

15331533
ispload: $(TARGET_EEP) $(TARGET_HEX) verify_size
1534-
$(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) \
1534+
$(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) -e \
15351535
$(AVRDUDE_ISPLOAD_OPTS)
15361536

15371537
burn_bootloader:
@@ -1547,7 +1547,7 @@ endif
15471547

15481548
set_fuses:
15491549
ifneq ($(strip $(AVRDUDE_ISP_FUSES_PRE)),)
1550-
$(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) -e $(AVRDUDE_ISP_FUSES_PRE)
1550+
$(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) $(AVRDUDE_ISP_FUSES_PRE)
15511551
endif
15521552
ifneq ($(strip $(AVRDUDE_ISP_FUSES_POST)),)
15531553
$(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) $(AVRDUDE_ISP_FUSES_POST)

HISTORY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ The following is the rough list of changes that went into different versions.
55
I tried to give credit whenever possible. If I have missed anyone, kindly add it to the list.
66

77
### In Development
8+
- Fix: Moved ATtiny examples to ATtinyBlink, updated alternate core instructions (issue #537) (https://github.com/sej7278)
89
- Fix: Add -fno-devirtualize flag to workaround g++ segfault bug (issue #486). (https://github.com/sej7278)
910
- Fix: Quote the prefix tag in the space_pad_to function
1011
- Fix: recognize serial monitors with full path in MONITOR_CMD
12+
- Tweak: Move chip erase flag from set_fuses to ispload to prevent sketch being nuked when setting fuses
1113
- Tweak: Set ARDMK_VERSION to 1.6 (https://github.com/sej7278)
1214
- Tweak: Move non-standard-related items from CxxFLAGS_STD to CxxFLAGS (issue #523) (https://github.com/sej7278)
1315
- Tweak: Update Windows usage documentation and allow non-relative paths (issue #519) (https://github.com/tuna-f1sh)

examples/ATtinyBlink/Makefile

Lines changed: 54 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,59 @@
11
# Arduino Make file. Refer to https://github.com/sudar/Arduino-Makefile
22

3-
# if you have placed the alternate core in your sketchbook directory, then you can just mention the core name alone.
4-
ALTERNATE_CORE = attiny
5-
# If not, you might have to include the full path.
6-
#ALTERNATE_CORE_PATH = /home/sudar/Dropbox/code/arduino-sketches/hardware/attiny/
3+
# Set this if the IDE is not in your $PATH or you want to use a specific version:
4+
ARDUINO_DIR = $(HOME)/arduino-1.8.5
75

8-
BOARD_TAG = attiny85-8
9-
ISP_PORT = /dev/ttyACM*
6+
# Programmer type:
7+
ISP_PROG = usbasp
108

11-
include $(ARDMK_DIR)/Arduino.mk
9+
# Examples - obviously pick only one and comment/delete the rest:
1210

13-
# !!! Important. You have to use make ispload to upload when using ISP programmer
11+
# ------------------------------------------------------------------ #
12+
13+
# https://github.com/SpenceKonde/ATTinyCore (1.5+)
14+
ALTERNATE_CORE = ATTinyCore
15+
BOARD_TAG = attinyx4
16+
BOARD_SUB = 84
17+
VARIANT = tinyX4
18+
F_CPU = 8000000L
19+
#BOARD_TAG = attinyx313
20+
#BOARD_SUB = 4313
21+
#BOARD_TAG = attinyx61
22+
#BOARD_SUB = 861
23+
#F_CPU = 8000000L
24+
25+
# ------------------------------------------------------------------ #
26+
27+
# https://github.com/Coding-Badly/TinyCore1 (1.5+)
28+
ALTERNATE_CORE = tiny
29+
BOARD_TAG = attiny85at8
30+
#BOARD_TAG = attiny2313at1
31+
32+
# https://github.com/Coding-Badly/arduino-tiny (1.0)
33+
ALTERNATE_CORE = tiny
34+
BOARD_TAG = attiny85at8
35+
#BOARD_TAG = attiny44at8
36+
#BOARD_TAG = attiny84at8
37+
ARDUINO_VAR_PATH = $(HOME)/arduino/hardware/tiny/cores/tiny
38+
ARDUINO_CORE_PATH = $(HOME)/arduino/hardware/tiny/cores/tiny
39+
40+
# ------------------------------------------------------------------ #
41+
42+
# https://github.com/damellis/attiny (1.5+)
43+
ALTERNATE_CORE = attiny-master
44+
BOARD_TAG = attiny
45+
BOARD_SUB = attiny85
46+
F_CPU = 16000000L
47+
48+
# https://github.com/damellis/attiny (1.0)
49+
ALTERNATE_CORE = attiny-master
50+
BOARD_TAG = attiny85
51+
#BOARD_TAG = attiny44-8
52+
#BOARD_TAG = attiny84-20
53+
54+
# ------------------------------------------------------------------ #
55+
56+
# Path to the Arduino Makefile
57+
include /usr/share/arduino/Arduino.mk
58+
59+
# !!! Important. You have to use 'make ispload' when using an ISP.

examples/Blink/Makefile

Lines changed: 28 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ include ../../Arduino.mk
4545
#BOOTLOADER_PARENT = $(HOME)/arduino/hardware/promicro/bootloaders
4646
#BOOTLOADER_PATH = caterina
4747
#BOOTLOADER_FILE = Caterina-promicro16.hex
48-
#ISP_PROG = usbasp
49-
#AVRDUDE_OPTS = -v
48+
#ISP_PROG = usbasp
49+
#AVRDUDE_OPTS = -v
5050
#include /usr/share/arduino/Arduino.mk
5151

5252
# --- chipkit
@@ -75,40 +75,8 @@ include ../../Arduino.mk
7575
#ARDUINO_DIR = /where/you/installed/arduino-1.6.5
7676
#include /usr/share/arduino/Arduino.mk
7777

78-
# --- arduino-tiny ide 1.0
79-
#ISP_PROG = usbasp
80-
#BOARD_TAG = attiny85at8
81-
#ALTERNATE_CORE = tiny
82-
#ARDUINO_VAR_PATH = $(HOME)/arduino/hardware/tiny/cores/tiny
83-
#ARDUINO_CORE_PATH = $(HOME)/arduino/hardware/tiny/cores/tiny
84-
#AVRDUDE_OPTS = -v
85-
#include /usr/share/arduino/Arduino.mk
86-
87-
# --- arduino-tiny ide 1.6
88-
#ISP_PROG = usbasp
89-
#BOARD_TAG = attiny85at8
90-
#ALTERNATE_CORE = tiny
91-
#ARDUINO_DIR = /where/you/installed/arduino-1.6.5
92-
#include /usr/share/arduino/Arduino.mk
93-
94-
# --- damellis attiny ide 1.0
95-
#ISP_PROG = usbasp
96-
#BOARD_TAG = attiny85
97-
#ALTERNATE_CORE = attiny-master
98-
#AVRDUDE_OPTS = -v
99-
#include /usr/share/arduino/Arduino.mk
100-
101-
# --- damellis attiny ide 1.6
102-
#ISP_PROG = usbasp
103-
#BOARD_TAG = attiny
104-
#BOARD_SUB = attiny85
105-
#ALTERNATE_CORE = attiny
106-
#F_CPU = 16000000L
107-
#ARDUINO_DIR = /where/you/installed/arduino-1.6.5
108-
#include /usr/share/arduino/Arduino.mk
109-
11078
# --- teensy3
111-
#BOARD_TAG = teensy31
79+
#BOARD_TAG = teensy31
11280
#ARDUINO_DIR = /where/you/installed/the/patched/teensy/arduino-1.0.6
11381
#include /usr/share/arduino/Teensy.mk
11482

@@ -118,8 +86,31 @@ include ../../Arduino.mk
11886
#BOOTLOADER_PARENT = $(HOME)/arduino/hardware/mighty-1284p/bootloaders
11987
#BOOTLOADER_PATH = optiboot
12088
#BOOTLOADER_FILE = optiboot_atmega1284p.hex
121-
#ISP_PROG = usbasp
122-
#AVRDUDE_OPTS = -v
89+
#ISP_PROG = usbasp
90+
#AVRDUDE_OPTS = -v
91+
#include /usr/share/arduino/Arduino.mk
92+
93+
# --- mightycore
94+
#ALTERNATE_CORE = MightyCore
95+
#BOARD_TAG = 1284
96+
#MCU = atmega1284p
97+
#BOARD_TAG = 644
98+
#MCU = atmega644p
99+
#VARIANT = standard
100+
#F_CPU = 16000000L
101+
#include /usr/share/arduino/Arduino.mk
102+
103+
# --- megacore
104+
#BOARD_TAG = 128
105+
#ALTERNATE_CORE = megacore
106+
#F_CPU = 16000000L
107+
#include /usr/share/arduino/Arduino.mk
108+
109+
# --- sanguino 644p
110+
#BOARD_TAG = atmega644p
111+
#ALTERNATE_CORE = sanguino
112+
#ISP_PROG = usbasp
113+
#AVRDUDE_OPTS = -v
123114
#include /usr/share/arduino/Arduino.mk
124115

125116
# --- atmega328p on breadboard

0 commit comments

Comments
 (0)