modified bench02 to run from 0x8000

This commit is contained in:
David Welch
2012-06-08 22:23:50 -04:00
parent b8613820ff
commit 215de128be
4 changed files with 6 additions and 15 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
MEMORY MEMORY
{ {
ram : ORIGIN = 0x00008000, LENGTH = 0x1000 ram : ORIGIN = 0x8000, LENGTH = 0x1000
} }
SECTIONS SECTIONS
+1 -5
View File
@@ -3,7 +3,7 @@ ARMGNU ?= arm-none-eabi
COPS = -mthumb-interwork -Wall -O2 -nostdlib -nostartfiles -ffreestanding COPS = -mthumb-interwork -Wall -O2 -nostdlib -nostartfiles -ffreestanding
all : bench02.hex bench02.bin all : bench02.bin
clean : clean :
rm -f *.o rm -f *.o
@@ -11,7 +11,6 @@ clean :
rm -f *.hex rm -f *.hex
rm -f *.elf rm -f *.elf
rm -f *.list rm -f *.list
rm -f *.img
novectors.o : novectors.s novectors.o : novectors.s
$(ARMGNU)-as novectors.s -o novectors.o $(ARMGNU)-as novectors.s -o novectors.o
@@ -29,7 +28,4 @@ bench02.elf : memmap novectors.o bench02.o uart.o
bench02.bin : bench02.elf bench02.bin : bench02.elf
$(ARMGNU)-objcopy bench02.elf -O binary bench02.bin $(ARMGNU)-objcopy bench02.elf -O binary bench02.bin
bench02.hex : bench02.elf
$(ARMGNU)-objcopy bench02.elf -O ihex bench02.hex
+1 -1
View File
@@ -1,7 +1,7 @@
MEMORY MEMORY
{ {
ram : ORIGIN = 0x00000000, LENGTH = 0x1000 ram : ORIGIN = 0x8000, LENGTH = 0x1000
} }
SECTIONS SECTIONS
+3 -8
View File
@@ -3,14 +3,9 @@
.globl _start .globl _start
_start: _start:
b reset mov sp,#0x8000
reset: bl notmain
ldr sp,stack_start b .
ldr r0,thumb_start_add
bx r0
stack_start: .word 0x10000
thumb_start_add: .word thumb_start
.globl start_l1cache .globl start_l1cache
start_l1cache: start_l1cache: