Skip to content

Commit

Permalink
use Arduino-1.0.5 for less SRAM usage; see #9 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
mash committed Apr 16, 2015
1 parent 0829db3 commit 669cb10
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions firmware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ assembly: $(CPPLISTS) $(CLISTS)

$(BUILDDIR)/$(SOURCEDIR)/%.lst : $(SOURCEDIR)/%.cpp
@mkdir -p $(BUILDDIR)/$(SOURCEDIR)
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=105 -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino -ffunction-sections -fdata-sections -g -Os -w -DUSB_VID=0x1d50 -DUSB_PID=0x6085 -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/variants/leonardo -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/avr-libc -Wa,-aln=$@ -fno-exceptions -o $(subst .lst,.o,$@) -c $<
/Applications/Arduino-1.0.5.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=105 -I/Applications/Arduino-1.0.5.app/Contents/Resources/Java/hardware/arduino/cores/arduino -ffunction-sections -fdata-sections -g -Os -w -DUSB_VID=0x1d50 -DUSB_PID=0x6085 -I/Applications/Arduino-1.0.5.app/Contents/Resources/Java/hardware/arduino/variants/leonardo -I/Applications/Arduino-1.0.5.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Applications/Arduino-1.0.5.app/Contents/Resources/Java/hardware/arduino/cores/arduino/avr-libc -Wa,-aln=$@ -fno-exceptions -o $(subst .lst,.o,$@) -c $<

$(BUILDDIR)/$(SOURCEDIR)/%.lst : $(SOURCEDIR)/%.c
@mkdir -p $(BUILDDIR)/$(SOURCEDIR)
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=105 -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino -ffunction-sections -fdata-sections -g -Os -w -DUSB_VID=0x1d50 -DUSB_PID=0x6085 -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/variants/leonardo -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/avr-libc -Wa,-aln=$@ -o $(subst .lst,.o,$@) -c $<
/Applications/Arduino-1.0.5.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=105 -I/Applications/Arduino-1.0.5.app/Contents/Resources/Java/hardware/arduino/cores/arduino -ffunction-sections -fdata-sections -g -Os -w -DUSB_VID=0x1d50 -DUSB_PID=0x6085 -I/Applications/Arduino-1.0.5.app/Contents/Resources/Java/hardware/arduino/variants/leonardo -I/Applications/Arduino-1.0.5.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Applications/Arduino-1.0.5.app/Contents/Resources/Java/hardware/arduino/cores/arduino/avr-libc -Wa,-aln=$@ -o $(subst .lst,.o,$@) -c $<


2 changes: 1 addition & 1 deletion firmware/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
set -xe

AVRBIN=/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin
AVRBIN=/Applications/Arduino-1.0.5.app/Contents/Resources/Java/hardware/tools/avr/bin

# remove Arduino IDE build files
rm -rf src/IRKit/build-uno/
Expand Down
2 changes: 1 addition & 1 deletion firmware/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

# don't want to write boot loader area of leonardo
AVRBIN=/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin
AVRBIN=/Applications/Arduino-1.0.5.app/Contents/Resources/Java/hardware/tools/avr/bin
DATASIZE=`$AVRBIN/avr-size -B .build/irkit/firmware.hex | tail -n 1 | cut -b 11-15`
if [ "$DATASIZE" -gt 28672 ]; then
echo "size is $DATASIZE > 28672, NG"
Expand Down

0 comments on commit 669cb10

Please sign in to comment.