Browse Source

k60: Use kinetis_common ldscript, rectify CPU_MODEL to full part number

master
Joakim Nohlgård 6 years ago
parent
commit
5203ad2643
  1. 2
      boards/mulle/Makefile.include
  2. 2
      cpu/k60/include/cpu_conf.h
  3. 12
      cpu/k60/ldscripts/K60DN256VLL10.ld
  4. 12
      cpu/k60/ldscripts/K60DN512VLL10.ld
  5. 1
      cpu/k60/ldscripts/mk60dn256vll10.ld
  6. 1
      cpu/k60/ldscripts/mk60dn512vll10.ld

2
boards/mulle/Makefile.include

@ -17,7 +17,7 @@ endif
# The linker script needs to know the flash and RAM sizes of the device.
ifeq ($(CPU_MODEL),)
CPU_MODEL = K60DN512VLL10
CPU_MODEL = mk60dn512vll10
endif
export CPU_MODEL

2
cpu/k60/include/cpu_conf.h

@ -30,7 +30,7 @@ extern "C"
#include <stdint.h>
#if defined(CPU_MODEL_K60DN512VLL10) || defined(CPU_MODEL_K60DN256VLL10)
#if defined(CPU_MODEL_MK60DN512VLL10) || defined(CPU_MODEL_MK60DN256VLL10)
#include "vendor/MK60D10.h"
/** The expected CPUID value, can be used to implement a check that we are

12
cpu/k60/ldscripts/K60DN256VLL10.ld

@ -1,12 +0,0 @@
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

12
cpu/k60/ldscripts/K60DN512VLL10.ld

@ -1,12 +0,0 @@
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

1
cpu/k60/ldscripts/mk60dn256vll10.ld

@ -0,0 +1 @@
../../kinetis_common/ldscripts/kinetis_f256l32u32.ld

1
cpu/k60/ldscripts/mk60dn512vll10.ld

@ -0,0 +1 @@
../../kinetis_common/ldscripts/kinetis_f512l64u64.ld
Loading…
Cancel
Save