Created
February 18, 2015 08:25
-
-
Save tsohr/639182ba4b182a0a1c6d to your computer and use it in GitHub Desktop.
Sanguino for arduino 1.6.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd "C:\Program Files (x86)\Arduino" | |
| "hardware\tools\avr\bin\avrdude" | |
| -C"C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf" | |
| -v -patmega1284p -Pcom5 -b19200 | |
| -c avrisp -Uflash:w:C:\USERS\ADMINI~1\APPDATA\LOCAL\TEMP\build8351945056164552931.tmp/Marlin.cpp.hex:i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Arduino AVR Core and platform. | |
| # ------------------------------ | |
| # For more info: | |
| # https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification | |
| name=Arduino AVR Boards | |
| version=1.6.0 | |
| # AVR compile variables | |
| # --------------------- | |
| # Default "compiler.path" is correct, change only if you want to overidde the initial value | |
| compiler.path={runtime.ide.path}/hardware/tools/avr/bin/ | |
| compiler.c.cmd=avr-gcc | |
| compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD | |
| # -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396 | |
| # This is fixed in gcc 4.8.3 and will be removed as soon as we update the toolchain | |
| compiler.c.elf.flags=-w -Os -Wl,--gc-sections | |
| compiler.c.elf.cmd=avr-gcc | |
| compiler.S.flags=-c -g -x assembler-with-cpp | |
| compiler.cpp.cmd=avr-g++ | |
| compiler.cpp.flags=-c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD | |
| compiler.ar.cmd=avr-ar | |
| compiler.ar.flags=rcs | |
| compiler.objcopy.cmd=avr-objcopy | |
| compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 | |
| compiler.elf2hex.flags=-O ihex -R .eeprom | |
| compiler.elf2hex.cmd=avr-objcopy | |
| compiler.ldflags= | |
| compiler.size.cmd=avr-size | |
| # This can be overriden in boards.txt | |
| build.extra_flags= | |
| # These can be overridden in platform.local.txt | |
| compiler.c.extra_flags= | |
| compiler.c.elf.extra_flags= | |
| compiler.S.extra_flags= | |
| compiler.cpp.extra_flags= | |
| compiler.ar.extra_flags= | |
| compiler.objcopy.eep.extra_flags= | |
| compiler.elf2hex.extra_flags= | |
| # AVR compile patterns | |
| # -------------------- | |
| ## Compile c files | |
| recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}" | |
| ## Compile c++ files | |
| recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}" | |
| ## Compile S files | |
| recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.S.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}" | |
| ## Create archives | |
| recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}" | |
| ## Combine gc-sections, archives, and objects | |
| recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mmcu={build.mcu} {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" {object_files} "{build.path}/{archive_file}" "-L{build.path}" -lm | |
| ## Create eeprom | |
| recipe.objcopy.eep.pattern="{compiler.path}{compiler.objcopy.cmd}" {compiler.objcopy.eep.flags} {compiler.objcopy.eep.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.eep" | |
| ## Create hex | |
| recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex" | |
| ## Compute size | |
| recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf" | |
| recipe.size.regex=^(?:\.text|\.data|\.bootloader)\s+([0-9]+).* | |
| recipe.size.regex.data=^(?:\.data|\.bss|\.noinit)\s+([0-9]+).* | |
| recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).* | |
| # AVR Uploader/Programmers tools | |
| # ------------------------------ | |
| tools.avrdude.cmd.path={runtime.ide.path}/hardware/tools/avr/bin/avrdude | |
| tools.avrdude.config.path={runtime.ide.path}/hardware/tools/avr/etc/avrdude.conf | |
| tools.avrdude.upload.params.verbose=-v | |
| tools.avrdude.upload.params.quiet=-q -q | |
| tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} -p{build.mcu} -c{upload.protocol} -P{serial.port} -b{upload.speed} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i" | |
| tools.avrdude.program.params.verbose=-v | |
| tools.avrdude.program.params.quiet=-q -q | |
| tools.avrdude.program.pattern="{cmd.path}" "-C{config.path}" {program.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{build.path}/{build.project_name}.hex:i" | |
| tools.avrdude.erase.params.verbose=-v | |
| tools.avrdude.erase.params.quiet=-q -q | |
| tools.avrdude.erase.pattern="{cmd.path}" "-C{config.path}" {erase.verbose} -p{build.mcu} -c{protocol} {program.extra_params} -e -Ulock:w:{bootloader.unlock_bits}:m -Uefuse:w:{bootloader.extended_fuses}:m -Uhfuse:w:{bootloader.high_fuses}:m -Ulfuse:w:{bootloader.low_fuses}:m | |
| tools.avrdude.bootloader.params.verbose=-v | |
| tools.avrdude.bootloader.params.quiet=-q -q | |
| tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.platform.path}/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m | |
| # USB Default Flags | |
| # Default blank usb manufacturer will be filled it at compile time | |
| # - from numeric vendor ID, set to Unknown otherwise | |
| build.usb_manufacturer= | |
| build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # See: http://code.google.com/p/arduino/wiki/Platforms | |
| avrisp.name=AVR ISP | |
| avrisp.communication=serial | |
| avrisp.protocol=stk500v1 | |
| avrispmkii.name=AVRISP mkII | |
| avrispmkii.communication=usb | |
| avrispmkii.protocol=stk500v2 | |
| usbtinyisp.name=USBtinyISP | |
| usbtinyisp.protocol=usbtiny | |
| usbasp.name=USBasp | |
| usbasp.communication=usb | |
| usbasp.protocol=usbasp | |
| parallel.name=Parallel Programmer | |
| parallel.protocol=dapa | |
| parallel.force=true | |
| # parallel.delay=200 | |
| arduinoispm.name=Arduino as ISP Melzi | |
| arduinoispm.communication=serial | |
| arduinoispm.protocol=stk500v1 | |
| arduinoispm.speed=19200 | |
| arduinoispm.program.tool=avrdude | |
| avrispv2.name=AVR ISP v2 | |
| avrispv2.communication=serial | |
| avrispv2.protocol=avrispv2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment