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 */