Browse Source

kinetis: Add ldscripts for various memory layouts

master
Joakim Nohlgård 6 years ago
parent
commit
12c9004a82
  1. 18
      cpu/kinetis_common/ldscripts/kinetis_f1024l64u192.ld
  2. 18
      cpu/kinetis_common/ldscripts/kinetis_f256l16u16.ld
  3. 18
      cpu/kinetis_common/ldscripts/kinetis_f256l32u32.ld
  4. 18
      cpu/kinetis_common/ldscripts/kinetis_f512l32u32.ld
  5. 18
      cpu/kinetis_common/ldscripts/kinetis_f512l64u64.ld

18
cpu/kinetis_common/ldscripts/kinetis_f1024l64u192.ld

@ -0,0 +1,18 @@
/*
* NXP Kinetis CPU with the following memory layout:
* 1024 kB flash @ 0x00000000
* 256 kB RAM, split into two banks: 64 kB SRAM_L, 192 kB SRAM_U.
* SRAM_L ends at 0x1fffffff, SRAM_U begins at 0x20000000
*/
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
MEMORY
{
vectors (rx) : ORIGIN = 0x00000000, LENGTH = 0x400
flashsec (rx) : ORIGIN = 0x00000400, LENGTH = 0x10
rom (rx) : ORIGIN = 0x00000410, LENGTH = 1024K - 0x410
ram (rwx) : ORIGIN = 0x20000000 - 64K, LENGTH = 256K
}
INCLUDE kinetis.ld

18
cpu/kinetis_common/ldscripts/kinetis_f256l16u16.ld

@ -0,0 +1,18 @@
/*
* NXP Kinetis CPU with the following memory layout:
* 256 kB flash @ 0x00000000
* 32 kB RAM, split into two banks: 16 kB SRAM_L, 16 kB SRAM_U.
* SRAM_L ends at 0x1fffffff, SRAM_U begins at 0x20000000
*/
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
MEMORY
{
vectors (rx) : ORIGIN = 0x00000000, LENGTH = 0x400
flashsec (rx) : ORIGIN = 0x00000400, LENGTH = 0x10
rom (rx) : ORIGIN = 0x00000410, LENGTH = 256K - 0x410
ram (rwx) : ORIGIN = 0x20000000 - 16K, LENGTH = 32K
}
INCLUDE kinetis.ld

18
cpu/kinetis_common/ldscripts/kinetis_f256l32u32.ld

@ -0,0 +1,18 @@
/*
* NXP Kinetis CPU with the following memory layout:
* 256 kB flash @ 0x00000000
* 64 kB RAM, split into two banks: 32 kB SRAM_L, 32 kB SRAM_U.
* SRAM_L ends at 0x1fffffff, SRAM_U begins at 0x20000000
*/
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
MEMORY
{
vectors (rx) : ORIGIN = 0x00000000, LENGTH = 0x400
flashsec (rx) : ORIGIN = 0x00000400, LENGTH = 0x10
rom (rx) : ORIGIN = 0x00000410, LENGTH = 256K - 0x410
ram (rwx) : ORIGIN = 0x20000000 - 32K, LENGTH = 64K
}
INCLUDE kinetis.ld

18
cpu/kinetis_common/ldscripts/kinetis_f512l32u32.ld

@ -0,0 +1,18 @@
/*
* NXP Kinetis CPU with the following memory layout:
* 512 kB flash @ 0x00000000
* 64 kB RAM, split into two banks: 32 kB SRAM_L, 32 kB SRAM_U.
* SRAM_L ends at 0x1fffffff, SRAM_U begins at 0x20000000
*/
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
MEMORY
{
vectors (rx) : ORIGIN = 0x00000000, LENGTH = 0x400
flashsec (rx) : ORIGIN = 0x00000400, LENGTH = 0x10
rom (rx) : ORIGIN = 0x00000410, LENGTH = 512K - 0x410
ram (rwx) : ORIGIN = 0x20000000 - 32K, LENGTH = 64K
}
INCLUDE kinetis.ld

18
cpu/kinetis_common/ldscripts/kinetis_f512l64u64.ld

@ -0,0 +1,18 @@
/*
* NXP Kinetis CPU with the following memory layout:
* 512 kB flash @ 0x00000000
* 128 kB RAM, split into two banks: 64 kB SRAM_L, 64 kB SRAM_U.
* SRAM_L ends at 0x1fffffff, SRAM_U begins at 0x20000000
*/
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
MEMORY
{
vectors (rx) : ORIGIN = 0x00000000, LENGTH = 0x400
flashsec (rx) : ORIGIN = 0x00000400, LENGTH = 0x10
rom (rx) : ORIGIN = 0x00000410, LENGTH = 512K - 0x410
ram (rwx) : ORIGIN = 0x20000000 - 64K, LENGTH = 128K
}
INCLUDE kinetis.ld
Loading…
Cancel
Save