diff options
Diffstat (limited to 'nuttx/configs/avr32dev1/ostest/ld.script')
-rwxr-xr-x | nuttx/configs/avr32dev1/ostest/ld.script | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/nuttx/configs/avr32dev1/ostest/ld.script b/nuttx/configs/avr32dev1/ostest/ld.script index f2dcccb6b..d4d89881c 100755 --- a/nuttx/configs/avr32dev1/ostest/ld.script +++ b/nuttx/configs/avr32dev1/ostest/ld.script @@ -37,12 +37,20 @@ OUTPUT_FORMAT("elf32-avr32", "elf32-avr32", "elf32-avr32") OUTPUT_ARCH(avr32:uc) ENTRY(_stext) +/* The following assumes that the bootloader resides at 0x8000:0000 and so + * links the application to execute after the bootloader at 0x8000:2000. + * To link so that NuttX boots directly without using the bootloader, + * change the flash definition to: + * + * flash (rxai!w) : ORIGIN = 0x80000000, LENGTH = 256K + */ + MEMORY { - flash (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x00020000 - intram (wxa!ri) : ORIGIN = 0x00000004, LENGTH = 0x00007FFC - userpage : ORIGIN = 0x80800000, LENGTH = 0x00000200 - factorypage : ORIGIN = 0x80800200, LENGTH = 0x00000200 + flash (rxai!w) : ORIGIN = 0x80002000, LENGTH = 256K - 8K + intram (wxa!ri) : ORIGIN = 0x00000004, LENGTH = 32K + userpage : ORIGIN = 0x80800000, LENGTH = 512 + factorypage : ORIGIN = 0x80800200, LENGTH = 512 } SECTIONS |