diff options
author | utzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2015-08-12 00:36:29 +0000 |
---|---|---|
committer | utzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2015-08-12 00:36:29 +0000 |
commit | 82ed9f3093c6eee305364314d891f73d64507ce0 (patch) | |
tree | 4ac3ce00f297f72f710cec844df7a4a4958d29b9 /os | |
parent | 3ba46de33230db0c744b7a40cca5ec509bb29b9b (diff) | |
download | ChibiOS-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')
-rw-r--r-- | os/hal/ports/KINETIS/K20x/hal_lld.c | 4 | ||||
-rw-r--r-- | os/hal/ports/KINETIS/KL2x/hal_lld.c | 4 |
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 */
|