modified bench02 to run from 0x8000
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
MEMORY
|
||||
{
|
||||
ram : ORIGIN = 0x00008000, LENGTH = 0x1000
|
||||
ram : ORIGIN = 0x8000, LENGTH = 0x1000
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
|
||||
@@ -3,7 +3,7 @@ ARMGNU ?= arm-none-eabi
|
||||
|
||||
COPS = -mthumb-interwork -Wall -O2 -nostdlib -nostartfiles -ffreestanding
|
||||
|
||||
all : bench02.hex bench02.bin
|
||||
all : bench02.bin
|
||||
|
||||
clean :
|
||||
rm -f *.o
|
||||
@@ -11,7 +11,6 @@ clean :
|
||||
rm -f *.hex
|
||||
rm -f *.elf
|
||||
rm -f *.list
|
||||
rm -f *.img
|
||||
|
||||
novectors.o : novectors.s
|
||||
$(ARMGNU)-as novectors.s -o novectors.o
|
||||
@@ -29,7 +28,4 @@ bench02.elf : memmap novectors.o bench02.o uart.o
|
||||
bench02.bin : bench02.elf
|
||||
$(ARMGNU)-objcopy bench02.elf -O binary bench02.bin
|
||||
|
||||
bench02.hex : bench02.elf
|
||||
$(ARMGNU)-objcopy bench02.elf -O ihex bench02.hex
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
MEMORY
|
||||
{
|
||||
ram : ORIGIN = 0x00000000, LENGTH = 0x1000
|
||||
ram : ORIGIN = 0x8000, LENGTH = 0x1000
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
|
||||
@@ -3,14 +3,9 @@
|
||||
|
||||
.globl _start
|
||||
_start:
|
||||
b reset
|
||||
reset:
|
||||
ldr sp,stack_start
|
||||
ldr r0,thumb_start_add
|
||||
bx r0
|
||||
|
||||
stack_start: .word 0x10000
|
||||
thumb_start_add: .word thumb_start
|
||||
mov sp,#0x8000
|
||||
bl notmain
|
||||
b .
|
||||
|
||||
.globl start_l1cache
|
||||
start_l1cache:
|
||||
|
||||
Reference in New Issue
Block a user