aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports
diff options
context:
space:
mode:
authorutzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4>2015-08-12 00:36:29 +0000
committerutzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4>2015-08-12 00:36:29 +0000
commit82ed9f3093c6eee305364314d891f73d64507ce0 (patch)
tree4ac3ce00f297f72f710cec844df7a4a4958d29b9 /os/hal/ports
parent3ba46de33230db0c744b7a40cca5ec509bb29b9b (diff)
downloadChibiOS-82ed9f3093c6eee305364314d891f73d64507ce0.tar.gz
ChibiOS-82ed9f3093c6eee305364314d891f73d64507ce0.tar.bz2
ChibiOS-82ed9f3093c6eee305364314d891f73d64507ce0.zip
[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
Diffstat (limited to 'os/hal/ports')
-rw-r--r--os/hal/ports/KINETIS/K20x/hal_lld.c4
-rw-r--r--os/hal/ports/KINETIS/KL2x/hal_lld.c4
2 files changed, 8 insertions, 0 deletions
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 */