Add AVR32 start function

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2970 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2010-10-06 01:41:14 +00:00
parent b95de98dc8
commit f4b9babd31
2 changed files with 11 additions and 14 deletions
+2 -2
View File
@@ -725,7 +725,7 @@ CONFIG_EXAMPLES_USBSERIAL_TRACEINTERRUPTS=n
# #
# CONFIG_BOOT_RUNFROMFLASH - Some configurations support XIP # CONFIG_BOOT_RUNFROMFLASH - Some configurations support XIP
# operation from FLASH but must copy initialized .data sections to RAM. # operation from FLASH but must copy initialized .data sections to RAM.
# (should also be =n for the AVR32 which always runs from flash) # (should always be =y for this AVR32 which always runs from flash)
# CONFIG_BOOT_COPYTORAM - Some configurations boot in FLASH # CONFIG_BOOT_COPYTORAM - Some configurations boot in FLASH
# but copy themselves entirely into RAM for better performance. # but copy themselves entirely into RAM for better performance.
# CONFIG_CUSTOM_STACK - The up_ implementation will handle # CONFIG_CUSTOM_STACK - The up_ implementation will handle
@@ -742,7 +742,7 @@ CONFIG_EXAMPLES_USBSERIAL_TRACEINTERRUPTS=n
# CONFIG_HEAP_BASE - The beginning of the heap # CONFIG_HEAP_BASE - The beginning of the heap
# CONFIG_HEAP_SIZE - The size of the heap # CONFIG_HEAP_SIZE - The size of the heap
# #
CONFIG_BOOT_RUNFROMFLASH=n CONFIG_BOOT_RUNFROMFLASH=y
CONFIG_BOOT_COPYTORAM=n CONFIG_BOOT_COPYTORAM=n
CONFIG_CUSTOM_STACK=n CONFIG_CUSTOM_STACK=n
CONFIG_STACK_POINTER= CONFIG_STACK_POINTER=
+9 -12
View File
@@ -33,21 +33,18 @@
* *
****************************************************************************/ ****************************************************************************/
/* The AT91UC3B0256 has 256Kb of FLASH beginning at address 0x0000:0000 and OUTPUT_FORMAT("elf32-avr32", "elf32-avr32", "elf32-avr32")
* 64Kb of total SRAM: 32Kb of SRAM in the CPU block beginning at address OUTPUT_ARCH(avr32:uc)
* 0x10000000 and 32Kb of AHB SRAM in two banks of 16Kb beginning at addresses ENTRY(_stext)
* 0x20070000 and 0x20080000. Here we assume that .data and .bss will all fit
* into the 32Kb CPU SRAM address range.
*/
MEMORY MEMORY
{ {
flash (rx) : ORIGIN = 0x00000000, LENGTH = 256K flash (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x00020000
sram (rwx) : ORIGIN = 0x10000000, LENGTH = 32K intram (wxa!ri) : ORIGIN = 0x00000004, LENGTH = 0x00007FFC
userpage : ORIGIN = 0x80800000, LENGTH = 0x00000200
factorypage : ORIGIN = 0x80800200, LENGTH = 0x00000200
} }
OUTPUT_ARCH(avr32)
ENTRY(_stext)
SECTIONS SECTIONS
{ {
.text : { .text : {
@@ -74,7 +71,7 @@ SECTIONS
*(.gnu.linkonce.d.*) *(.gnu.linkonce.d.*)
CONSTRUCTORS CONSTRUCTORS
_edata = ABSOLUTE(.); _edata = ABSOLUTE(.);
} > sram AT > flash } > intram AT > flash
.bss : { /* BSS */ .bss : { /* BSS */
_sbss = ABSOLUTE(.); _sbss = ABSOLUTE(.);
@@ -82,7 +79,7 @@ SECTIONS
*(.gnu.linkonce.b.*) *(.gnu.linkonce.b.*)
*(COMMON) *(COMMON)
_ebss = ABSOLUTE(.); _ebss = ABSOLUTE(.);
} > sram } > intram
/* Stabs debugging sections. */ /* Stabs debugging sections. */
.stab 0 : { *(.stab) } .stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) } .stabstr 0 : { *(.stabstr) }