[update] example/Makefile base text address
authorFabien Le Mentec <texane@gmail.com>
Sat, 15 Oct 2011 17:31:21 +0000 (12:31 -0500)
committerFabien Le Mentec <texane@gmail.com>
Sat, 15 Oct 2011 17:31:21 +0000 (12:31 -0500)
example/Makefile

index f0e18996d6220659f3a036f7a8e1f23f5dc01a48..57179a8151e7a9fa36fa4930d5ac0e80a7f40550 100644 (file)
@@ -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)