From 82ed9f3093c6eee305364314d891f73d64507ce0 Mon Sep 17 00:00:00 2001 From: utzig Date: Wed, 12 Aug 2015 00:36:29 +0000 Subject: [PATCH] [KINETIS] Fix flash security block removal on RVCT git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8206 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/KINETIS/K20x/hal_lld.c | 4 ++++ os/hal/ports/KINETIS/KL2x/hal_lld.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/os/hal/ports/KINETIS/K20x/hal_lld.c b/os/hal/ports/KINETIS/K20x/hal_lld.c index fe98a05c4..e25509769 100644 --- a/os/hal/ports/KINETIS/K20x/hal_lld.c +++ b/os/hal/ports/KINETIS/K20x/hal_lld.c @@ -36,7 +36,11 @@ /* Driver local variables and types. */ /*===========================================================================*/ +#ifdef __CC_ARM +__attribute__ ((section(".ARM.__at_0x400"))) +#else __attribute__ ((section(".cfmconfig"))) +#endif const uint8_t _cfm[0x10] = { 0xFF, /* NV_BACKKEY3: KEY=0xFF */ 0xFF, /* NV_BACKKEY2: KEY=0xFF */ diff --git a/os/hal/ports/KINETIS/KL2x/hal_lld.c b/os/hal/ports/KINETIS/KL2x/hal_lld.c index 2352b1179..e006e1228 100644 --- a/os/hal/ports/KINETIS/KL2x/hal_lld.c +++ b/os/hal/ports/KINETIS/KL2x/hal_lld.c @@ -37,7 +37,11 @@ /* Driver local variables and types. */ /*===========================================================================*/ +#ifdef __CC_ARM +__attribute__ ((section(".ARM.__at_0x400"))) +#else __attribute__ ((section(".cfmconfig"))) +#endif const uint8_t _cfm[0x10] = { 0xFF, /* NV_BACKKEY3: KEY=0xFF */ 0xFF, /* NV_BACKKEY2: KEY=0xFF */