From 0d1a778e7235a2c8a4a035dc4c82a66bfc74dfe3 Mon Sep 17 00:00:00 2001 From: David Welch Date: Wed, 20 Jun 2012 01:00:49 -0400 Subject: [PATCH] updating top level readme and changing uart examples to use the 0x8000 base address --- README | 3 ++- uart01/memmap | 2 +- uart01/vectors.s | 5 +---- uart02/memmap | 2 +- uart02/vectors.s | 5 +---- uart03/memmap | 2 +- uart03/novectors.s | 4 +--- 7 files changed, 8 insertions(+), 15 deletions(-) diff --git a/README b/README index 5c7d5ee..ba7b4e9 100644 --- a/README +++ b/README @@ -105,7 +105,8 @@ my examples). go to the firmware directory and then the boot directory. For each of these files, bootcode.bin, loader.bin, start.elf (NOT kernel.img, dont need it, too big). Click on the file name, it will go to another page then click on View Raw and it will let you download -the file. +the file. For reference, I do not use nor have a config.txt file on my +sd card. I only have the four files. bootcode.bin is about 2MBytes, the other files are smaller, so you will want an sd card that is at least a few meg, probably a full 128MBytes or diff --git a/uart01/memmap b/uart01/memmap index 8d9566d..42d3af4 100644 --- a/uart01/memmap +++ b/uart01/memmap @@ -1,7 +1,7 @@ MEMORY { - ram : ORIGIN = 0x00000000, LENGTH = 0x1000 + ram : ORIGIN = 0x8000, LENGTH = 0x1000 } SECTIONS diff --git a/uart01/vectors.s b/uart01/vectors.s index ac90378..beb9cf5 100644 --- a/uart01/vectors.s +++ b/uart01/vectors.s @@ -1,10 +1,7 @@ .globl _start _start: - b reset - -reset: - mov sp,#0x1000 + mov sp,#0x8000 bl notmain hang: b hang diff --git a/uart02/memmap b/uart02/memmap index 8d9566d..42d3af4 100644 --- a/uart02/memmap +++ b/uart02/memmap @@ -1,7 +1,7 @@ MEMORY { - ram : ORIGIN = 0x00000000, LENGTH = 0x1000 + ram : ORIGIN = 0x8000, LENGTH = 0x1000 } SECTIONS diff --git a/uart02/vectors.s b/uart02/vectors.s index ac90378..beb9cf5 100644 --- a/uart02/vectors.s +++ b/uart02/vectors.s @@ -1,10 +1,7 @@ .globl _start _start: - b reset - -reset: - mov sp,#0x1000 + mov sp,#0x8000 bl notmain hang: b hang diff --git a/uart03/memmap b/uart03/memmap index 8d9566d..42d3af4 100644 --- a/uart03/memmap +++ b/uart03/memmap @@ -1,7 +1,7 @@ MEMORY { - ram : ORIGIN = 0x00000000, LENGTH = 0x1000 + ram : ORIGIN = 0x8000, LENGTH = 0x1000 } SECTIONS diff --git a/uart03/novectors.s b/uart03/novectors.s index 98012df..e1d4170 100644 --- a/uart03/novectors.s +++ b/uart03/novectors.s @@ -1,13 +1,11 @@ .globl _start _start: - b reset -reset: ldr sp,stack_start ldr r0,thumb_start_add bx r0 -stack_start: .word 0x1000 +stack_start: .word 0x8000 thumb_start_add: .word thumb_start .word 0 .word 0