diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-10-06 01:41:14 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-10-06 01:41:14 +0000 |
commit | 51b507083bb983e7c3789545e858d07776b34f92 (patch) | |
tree | 2e0a32f3a0369905631a2df05530aa9ef7ce04f5 /nuttx/configs | |
parent | f530cf486e93a821f447c67b4bc9fc090bae64c1 (diff) | |
download | px4-nuttx-51b507083bb983e7c3789545e858d07776b34f92.tar.gz px4-nuttx-51b507083bb983e7c3789545e858d07776b34f92.tar.bz2 px4-nuttx-51b507083bb983e7c3789545e858d07776b34f92.zip |
Add AVR32 start function
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2970 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs')
-rwxr-xr-x | nuttx/configs/avr32dev1/ostest/defconfig | 4 | ||||
-rwxr-xr-x | nuttx/configs/avr32dev1/ostest/ld.script | 21 |
2 files changed, 11 insertions, 14 deletions
diff --git a/nuttx/configs/avr32dev1/ostest/defconfig b/nuttx/configs/avr32dev1/ostest/defconfig index 9f2b9ec5b..5a951c5c0 100755 --- a/nuttx/configs/avr32dev1/ostest/defconfig +++ b/nuttx/configs/avr32dev1/ostest/defconfig @@ -725,7 +725,7 @@ CONFIG_EXAMPLES_USBSERIAL_TRACEINTERRUPTS=n # # CONFIG_BOOT_RUNFROMFLASH - Some configurations support XIP # 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 # but copy themselves entirely into RAM for better performance. # 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_SIZE - The size of the heap # -CONFIG_BOOT_RUNFROMFLASH=n +CONFIG_BOOT_RUNFROMFLASH=y CONFIG_BOOT_COPYTORAM=n CONFIG_CUSTOM_STACK=n CONFIG_STACK_POINTER= diff --git a/nuttx/configs/avr32dev1/ostest/ld.script b/nuttx/configs/avr32dev1/ostest/ld.script index 6f1df07fb..f2dcccb6b 100755 --- a/nuttx/configs/avr32dev1/ostest/ld.script +++ b/nuttx/configs/avr32dev1/ostest/ld.script @@ -33,21 +33,18 @@ * ****************************************************************************/ -/* The AT91UC3B0256 has 256Kb of FLASH beginning at address 0x0000:0000 and - * 64Kb of total SRAM: 32Kb of SRAM in the CPU block beginning at address - * 0x10000000 and 32Kb of AHB SRAM in two banks of 16Kb beginning at addresses - * 0x20070000 and 0x20080000. Here we assume that .data and .bss will all fit - * into the 32Kb CPU SRAM address range. - */ +OUTPUT_FORMAT("elf32-avr32", "elf32-avr32", "elf32-avr32") +OUTPUT_ARCH(avr32:uc) +ENTRY(_stext) MEMORY { - flash (rx) : ORIGIN = 0x00000000, LENGTH = 256K - sram (rwx) : ORIGIN = 0x10000000, LENGTH = 32K + flash (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x00020000 + intram (wxa!ri) : ORIGIN = 0x00000004, LENGTH = 0x00007FFC + userpage : ORIGIN = 0x80800000, LENGTH = 0x00000200 + factorypage : ORIGIN = 0x80800200, LENGTH = 0x00000200 } -OUTPUT_ARCH(avr32) -ENTRY(_stext) SECTIONS { .text : { @@ -74,7 +71,7 @@ SECTIONS *(.gnu.linkonce.d.*) CONSTRUCTORS _edata = ABSOLUTE(.); - } > sram AT > flash + } > intram AT > flash .bss : { /* BSS */ _sbss = ABSOLUTE(.); @@ -82,7 +79,7 @@ SECTIONS *(.gnu.linkonce.b.*) *(COMMON) _ebss = ABSOLUTE(.); - } > sram + } > intram /* Stabs debugging sections. */ .stab 0 : { *(.stab) } .stabstr 0 : { *(.stabstr) } |