From c7f4400822c56f566ae465537b320bbb63a345cd Mon Sep 17 00:00:00 2001 From: Simon John Date: Sun, 18 Aug 2013 19:55:37 +0200 Subject: [PATCH 1/2] Added detailed instructions for using alternative cores Should close Issue #60 --- arduino-mk/Arduino.mk | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index ff8deb3..4294db2 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -195,6 +195,40 @@ # # ######################################################################## +# +# ALTERNATIVE CORES +# +# To use alternative cores for platforms such as ATtiny, you need to +# specify a few more variables, depending on the core in use. +# +# The HLT (attiny-master) core can be used just by specifying +# ALTERNATE_CORE, assuming your core is in your ~/sketchbook/hardware +# directory. For example: +# +# ISP_PORT = /dev/ttyACM0 +# BOARD_TAG = attiny85 +# ALTERNATE_CORE = attiny-master +# +# To use the more complex arduino-tiny and TinyCore2 cores, you must +# also set ARDUINO_CORE_PATH and ARDUINO_VAR_PATH to the core +# directory, as these cores essentially replace the main Arduino core. +# For example: +# +# ISP_PORT = /dev/ttyACM0 +# BOARD_TAG = attiny85at8 +# ALTERNATE_CORE = arduino-tiny +# ARDUINO_VAR_PATH = ~/sketchbook/hardware/arduino-tiny/cores/tiny +# ARDUINO_CORE_PATH = ~/sketchbook/hardware/arduino-tiny/cores/tiny +# +# or.... +# +# ISP_PORT = /dev/ttyACM0 +# BOARD_TAG = attiny861at8 +# ALTERNATE_CORE = tiny2 +# ARDUINO_VAR_PATH = ~/sketchbook/hardware/tiny2/cores/tiny +# ARDUINO_CORE_PATH = ~/sketchbook/hardware/tiny2/cores/tiny +# +######################################################################## arduino_output = # When output is not suppressed and we're in the top-level makefile, From b2eaca9b2e1d105dc2f565418acdacbca0db0008 Mon Sep 17 00:00:00 2001 From: Paolo D'Apice Date: Sun, 15 Sep 2013 15:00:22 +0800 Subject: [PATCH 2/2] Added help target showing a summary of all the available targetsx --- arduino-mk/Arduino.mk | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index 4294db2..217a35d 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -1154,7 +1154,32 @@ generate_assembly: $(OBJDIR)/$(TARGET).s generated_assembly: generate_assembly @$(ECHO) "generated_assembly" target is deprecated. Use "generate_assembly" target instead -.PHONY: all upload raw_upload raw_eeprom error_on_caterina reset reset_stty ispload clean depends size show_boards monitor disasm symbol_sizes generated_assembly generate_assembly verify_size +help: + @$(ECHO) "\nAvailable targets:\n\ + make - no upload\n\ + make upload - upload\n\ + make clean - remove all our dependencies\n\ + make depends - update dependencies\n\ + make reset - reset the Arduino by tickling DTR on the serial port\n\ + make raw_upload - upload without first resetting\n\ + make show_boards - list all the boards defined in boards.txt\n\ + make monitor - connect to the Arduino's serial port\n\ + make size - show the size of the compiled output (relative to\n\ + resources, if you have a patched avr-size)\n\ + make disasm - generate a .lss file in build-cli that contains\n\ + disassembly of the compiled file interspersed\n\ + with your original source code.\n\ + make verify_size - Verify that the size of the final file is less than\n\ + the capacity of the micro controller.\n\ + make eeprom - upload the eep file\n\ + make raw_eeprom - upload the eep file without first resetting\n\ + make help - show this help\n\ +" + @$(ECHO) "Please refer to $(ARDMK_DIR)/arduino-mk/Arduino.mk for more details." + +.PHONY: all upload raw_upload raw_eeprom error_on_caterina reset reset_stty ispload \ + clean depends size show_boards monitor disasm symbol_sizes generated_assembly \ + generate_assembly verify_size help # added - in the beginning, so that we don't get an error if the file is not present -include $(DEPS)