1
0
Fork 0

More messing with platform.txt. Inconsistent ARduino!

master
flabbergast 8 years ago
parent 6d156e1cb4
commit 7d86bd9aa2
  1. 4
      README.md
  2. 2
      tools/dfu-programmer.run.sh
  3. 4
      xmega/boards.txt
  4. 14
      xmega/platform.txt

@ -18,6 +18,10 @@ I've added support for USB enabled atxmega chips (at the moment, one
- Various third-party libraries might (and most probably do) need some
adjustments to work with XMEGAs.
- Because Arduino 1.6.2 is inconsistent as to how does it refer to where
the compiler resides, you might need to adjust `platform.txt` on 32bit
linux (if the compiler or avrdude is not found).
# Installation
Download zip (button on the right) and unpack to your

@ -17,4 +17,4 @@ fi
"$DFU_COMMAND" $1 erase
"$DFU_COMMAND" $@
"$DFU_COMMAND" $1 reset
exit 0
exit

@ -26,9 +26,9 @@ xa4u.menu.usb.none.build.usbtype=USB_NONE
##############################################################
mattaira4u.name=X-A4U USB stick
mattaira4u.name=MattairTech 128A4U breakout
mattaira4u.build.board=XMEGA_MATTAIR_A4U
mattaira4u.build.board=XMEGA_MATTAIR_128A4U
mattaira4u.build.mcu=atxmega128a4u
mattaira4u.build.f_cpu=32000000L
mattaira4u.build.core=xmega

@ -2,15 +2,17 @@
# Xmegaduino compile variables
# ---------------------
name=Xmegaduino Boards
version=1.5.5
name=Xmega Boards
version=1.6.2
# AVR compile variables
# ---------------------
# Default "compiler.path" is correct
compiler.path={runtime.tools.avr-gcc.path}/bin/
compiler.path.macosx={runtime.ide.path}/hardware/tools/avr/bin/
# no *not* define it here - it's inconsistent across Arduinos for different
# platforms - even linux.i686 and linux.x86_64 .... dammit
#compiler.path={runtime.tools.avr-gcc.path}/bin/
#compiler.path.macosx={runtime.ide.path}/hardware/tools/avr/bin/
compiler.c.cmd=avr-gcc
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD
compiler.c.elf.flags=-Os -Wl,--gc-sections
@ -58,12 +60,16 @@ recipe.size.regex=Total\s+([0-9]+).*
# AVR Uploader/Programmers tools
# -------------------
# this won't work for linux/i686 because Arduino itself is inconsistent
# and does not provide a way to distinguish x86_64 and i686
tools.avrdude.path={runtime.tools.avrdude.path}
tools.avrdude.cmd.path={path}/bin/avrdude
tools.avrdude.cmd.path.windows={path}/bin/avrdude.exe
tools.avrdude.cmd.path.macosx={runtime.ide.path}/hardware/tools/avr/bin/avrdude
tools.avrdude.cmd.path.linux={runtime.ide.path}/hardware/tools/avr/bin/avrdude
tools.avrdude.config.path={path}/etc/avrdude.conf
tools.avrdude.config.path.macosx={runtime.ide.path}/hardware/tools/avr/etc/avrdude.conf
tools.avrdude.config.path.linux={runtime.ide.path}/hardware/tools/avr/etc/avrdude.conf
tools.avrdude.upload.params.verbose=-v -v -v -v
tools.avrdude.upload.params.quiet=-q -q

Loading…
Cancel
Save