Re: A free Gamebuino if you compile the SD card bootloader
Posted: Sun Sep 04, 2016 4:27 pm
here is the compilation line:
and the flags from the makefile (unchanged from git):
/Users/francoisjacob/Dropbox/maker/arduino/2boots/arduino-1.0.5-macosx/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -fno-inline-small-functions -fno-split-wide-types -mshort-calls -mmcu=atmega328p -DF_CPU=16000000L '-DLED_START_FLASHES=3' '-DBAUD_RATE=115200' '-DMMC_CS=PORTB2' '-DMMC_PORT=PORTB' '-DMMC_DDR=DDRB' -I/Users/francoisjacob/Dropbox/maker/arduino/2boots/arduino-1.0.5-macosx/Arduino.app/Contents/Resources/Java/hardware/arduino/variants/standard -I/Users/francoisjacob/Dropbox/maker/arduino/2boots/arduino-1.0.5-macosx/Arduino.app/Contents/Resources/Java/hardware/arduino/variants/standard -I./ -MMD prog_flash.c -o obj/./prog_flash.c.o
and the flags from the makefile (unchanged from git):
# compiler flags for c files
CFLAGS = -c -g -Os -Wall -fno-inline-small-functions -fno-split-wide-types -mshort-calls -mmcu=atmega328p -DF_CPU=16000000L '-DLED_START_FLASHES=3' '-DBAUD_RATE=115200' \
'-DMMC_CS=PORTB2' '-DMMC_PORT=PORTB' '-DMMC_DDR=DDRB'
# '-DMMC_CS=PORTD4' '-DMMC_PORT=PORTD' '-DMMC_DDR=DDRD'
# linker flags
LINK_FLAGS = -g -Wall -Os -fno-inline-small-functions -fno-split-wide-types -mshort-calls -mmcu=atmega328p -Wl,--relax -Wl,--gc-sections -nostartfiles -nostdlib \
-Wl,--section-start=.text=0x7800 \
-Wl,--section-start=.jumps=0x7ffa \
-Wl,--section-start=.version=0x7ffe \
-Wl,--undefined=optiboot_version \
-Wl,--undefined=_jumptable