From 05d3638efdb93b7a8475868aef22433f4c5bfd93 Mon Sep 17 00:00:00 2001 From: Fabien Le Mentec Date: Sat, 15 Oct 2011 12:31:21 -0500 Subject: [PATCH] [update] example/Makefile base text address --- example/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/example/Makefile b/example/Makefile index f0e1899..57179a8 100644 --- a/example/Makefile +++ b/example/Makefile @@ -7,6 +7,12 @@ OBJCOPY=arm-none-eabi-objcopy CFLAGS=-O2 -mlittle-endian -mthumb CFLAGS+=-mcpu=cortex-m3 -ffreestanding -nostdlib -nostdinc +# to run from SRAM +# CFLAGS+=-Wl,-Ttext,0x20000000 + +# to write to flash then run +CFLAGS+=-Wl,-Ttext,0x08000000 + all: $(BIN_IMAGE) $(BIN_IMAGE): $(EXECUTABLE)