Kinetis: Add logic to set CFM protect area to all 0xff in all configurations

This commit is contained in:
Gregory Nutt 2015-06-11 08:38:56 -06:00
parent 26a8fc9233
commit c2e39c107b
3 changed files with 12 additions and 9 deletions

View File

@ -1,7 +1,7 @@
/****************************************************************************
* configs/kwikstik-k40/scripts/ld.script
*
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@ -48,7 +48,7 @@
MEMORY
{
vectflash (rx) : ORIGIN = 0x00000000, LENGTH = 1K - 16
vectflash (rx) : ORIGIN = 0x00000000, LENGTH = 1K
cfmprotect (rx) : ORIGIN = 0x00000400, LENGTH = 16
progflash (rx) : ORIGIN = 0x00000800, LENGTH = 256K - 2K
datasram (rwx) : ORIGIN = 0x1fff8000, LENGTH = 64K
@ -56,6 +56,7 @@ MEMORY
OUTPUT_ARCH(arm)
ENTRY(_stext)
EXTERN(__flashconfigbytes)
SECTIONS
{
.vectors : {
@ -65,7 +66,7 @@ SECTIONS
} > vectflash
.cfmprotect : {
*(.cfmconfig)
KEEP(*(.cfmconfig))
} > cfmprotect
.text : {

View File

@ -33,7 +33,7 @@
*
****************************************************************************/
/* The K20X256VLQ100 has 256Kb of FLASH beginning at address 0x0000:0000 and
/* The MK20DX256VLH7 has 256Kb of FLASH beginning at address 0x0000:0000 and
* 64Kb of SRAM beginning at address 0x1c00:0000 (SRAM_L) and 0x2000:000
* bitband region (SRAM_U).
*
@ -48,7 +48,7 @@
MEMORY
{
vectflash (rx) : ORIGIN = 0x00000000, LENGTH = 1K - 16
vectflash (rx) : ORIGIN = 0x00000000, LENGTH = 1K
cfmprotect (rx) : ORIGIN = 0x00000400, LENGTH = 16
progflash (rx) : ORIGIN = 0x00000800, LENGTH = 256K - 2K
datasram (rwx) : ORIGIN = 0x1fff8000, LENGTH = 64K
@ -56,6 +56,7 @@ MEMORY
OUTPUT_ARCH(arm)
ENTRY(_stext)
EXTERN(__flashconfigbytes)
SECTIONS
{
.vectors : {
@ -65,7 +66,7 @@ SECTIONS
} > vectflash
.cfmprotect : {
*(.cfmconfig)
KEEP(*(.cfmconfig))
} > cfmprotect
.text : {

View File

@ -1,7 +1,7 @@
/****************************************************************************
* configs/twr-k60n512/scripts/ld.script
*
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@ -48,7 +48,7 @@
MEMORY
{
vectflash (rx) : ORIGIN = 0x00000000, LENGTH = 1K - 16
vectflash (rx) : ORIGIN = 0x00000000, LENGTH = 1K
cfmprotect (rx) : ORIGIN = 0x00000400, LENGTH = 16
progflash (rx) : ORIGIN = 0x00000800, LENGTH = 512K - 2K
datasram (rwx) : ORIGIN = 0x1fff0000, LENGTH = 128K
@ -56,6 +56,7 @@ MEMORY
OUTPUT_ARCH(arm)
ENTRY(_stext)
EXTERN(__flashconfigbytes)
SECTIONS
{
.vectors : {
@ -65,7 +66,7 @@ SECTIONS
} > vectflash
.cfmprotect : {
*(.cfmconfig)
KEEP(*(.cfmconfig))
} > cfmprotect
.text : {