From: Fabien Le Mentec Date: Sat, 15 Oct 2011 17:31:21 +0000 (-0500) Subject: [update] example/Makefile base text address X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=05d3638efdb93b7a8475868aef22433f4c5bfd93;p=fw%2Fstlink [update] example/Makefile base text address --- 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)