Skip to content

Commit 2ca3195

Browse files
committed
NVIC offset and address in RAM correction
1 parent afcc79a commit 2ca3195

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libraries/mbed/targets/cmsis/TARGET_Freescale/TARGET_KL46Z/TOOLCHAIN_GCC_ARM/MKL46Z4.ld

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*
2-
* KL25Z ARM GCC linker script file
2+
* KL46Z ARM GCC linker script file
33
*/
44

55
MEMORY
66
{
77
VECTORS (rx) : ORIGIN = 0x00000000, LENGTH = 0x00000400
8-
FLASH_PROTECTION (rx) : ORIGIN = 0x00000400, LENGTH = 0x00000010
8+
FLASH_PROTECTION (rx) : ORIGIN = 0x00000400, LENGTH = 0x00000010
99
FLASH (rx) : ORIGIN = 0x00000410, LENGTH = 256K - 0x00000410
10-
RAM (rwx) : ORIGIN = 0x1FFFE000, LENGTH = 32K
10+
RAM (rwx) : ORIGIN = 0x1FFFE0C0, LENGTH = 32K - 0xC0
1111
}
1212

1313
/* Linker script to place sections and symbol values. Should be used together

libraries/mbed/targets/cmsis/TARGET_Freescale/TARGET_KL46Z/cmsis_nvic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
* Copyright (c) 2011 ARM Limited. All rights reserved.
33
*
44
* CMSIS-style functionality to support dynamic vectors
5-
*/
5+
*/
66
#include "cmsis_nvic.h"
77

8-
#define NVIC_RAM_VECTOR_ADDRESS (0x1FFFF000) // Vectors positioned at start of RAM
8+
#define NVIC_RAM_VECTOR_ADDRESS (0x1FFFE000) // Vectors positioned at start of RAM
99
#define NVIC_FLASH_VECTOR_ADDRESS (0x0) // Initial vector position in flash
1010

1111
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) {

0 commit comments

Comments
 (0)