Skip to content

Commit

Permalink
duemilanove, grove: Keep ROM image within limits
Browse files Browse the repository at this point in the history
While the atmega32p rom holds 32kB, the upper 512B hold the boot
loader, so we need to make sure the image fits within the remaining space.

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Sep 27, 2021
1 parent 60a1543 commit 5b2d578
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ports/duemilanove/Makefile
Expand Up @@ -56,6 +56,7 @@ OPT=-Os -frename-registers -funsigned-char -fno-jump-tables -mcall-prologues
CFLAGS=$(OPT) -DF_CPU=16000000UL -mmcu=atmega328p -I. -I$(SNEK_LOCAL_VPATH) -g $(SNEK_CFLAGS) -Waddr-space-convert
LDFLAGS=$(SNEK_LDFLAGS) \
-Wl,-uvfprintf -lprintf_flt -lm \
-Wl,--defsym -Wl,__TEXT_REGION_LENGTH__=0x7e00 \
-Wl,-Map=$(MAP)

all:: $(HEX) snek-$(BOARD)-install snek-$(BOARD)-install.1
Expand Down
1 change: 1 addition & 0 deletions ports/grove/Makefile
Expand Up @@ -54,6 +54,7 @@ OPT=-Os -frename-registers -funsigned-char -fno-jump-tables -mcall-prologues
CFLAGS=$(OPT) -DF_CPU=16000000UL -mmcu=atmega328p -I. -I$(SNEK_LOCAL_VPATH) -g $(SNEK_CFLAGS) -Waddr-space-convert
LDFLAGS=$(SNEK_LDFLAGS) \
-Wl,-uvfprintf -lprintf_flt -lm \
-Wl,--defsym -Wl,__TEXT_REGION_LENGTH__=0x7e00 \
-Wl,-Map=$(MAP)

all: $(HEX) snek-grove-install
Expand Down

0 comments on commit 5b2d578

Please sign in to comment.