File tree Expand file tree Collapse file tree 3 files changed +20
-6
lines changed
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52
TARGET_MCU_NRF52832/device/TOOLCHAIN_GCC_ARM
TARGET_MCU_NRF52840/device/TOOLCHAIN_GCC_ARM Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -199,13 +199,20 @@ SECTIONS
199
199
200
200
__edata = .;
201
201
202
+ .nvictable (NOLOAD) :
203
+ {
204
+ PROVIDE (__start_nvictable = .);
205
+ KEEP(*(.nvictable))
206
+ PROVIDE (__stop_nvictable = .);
207
+ } > RAM_NVIC
208
+
202
209
.noinit (NOLOAD) :
203
210
{
204
211
PROVIDE (__start_noinit = .);
205
212
KEEP(*(.noinit))
206
213
PROVIDE (__stop_noinit = .);
207
- } > RAM_NVIC
208
-
214
+ } > RAM
215
+
209
216
.bss :
210
217
{
211
218
. = ALIGN (4);
Original file line number Diff line number Diff line change @@ -198,12 +198,19 @@ SECTIONS
198
198
199
199
__edata = .;
200
200
201
+ .nvictable (NOLOAD) :
202
+ {
203
+ PROVIDE (__start_nvictable = .);
204
+ KEEP(*(.nvictable))
205
+ PROVIDE (__stop_nvictable = .);
206
+ } > RAM_NVIC
207
+
201
208
.noinit (NOLOAD) :
202
209
{
203
210
PROVIDE (__start_noinit = .);
204
211
KEEP(*(.noinit))
205
212
PROVIDE (__stop_noinit = .);
206
- } > RAM_NVIC
213
+ } > RAM
207
214
208
215
.bss :
209
216
{
Original file line number Diff line number Diff line change 46
46
#endif
47
47
48
48
#if defined(__CC_ARM ) || (defined(__ARMCC_VERSION ) && (__ARMCC_VERSION >= 6010050 ))
49
- __attribute__ ((section (".bss.noinit " ),zero_init ))
49
+ __attribute__ ((section (".bss.nvictable " ),zero_init ))
50
50
uint32_t nrf_dispatch_vector [NVIC_NUM_VECTORS ];
51
51
#elif defined(__GNUC__ )
52
- __attribute__ ((section (".noinit " )))
52
+ __attribute__ ((section (".nvictable " )))
53
53
uint32_t nrf_dispatch_vector [NVIC_NUM_VECTORS ];
54
54
#elif defined(__ICCARM__ )
55
- uint32_t nrf_dispatch_vector [NVIC_NUM_VECTORS ] @ ".noinit " ;
55
+ uint32_t nrf_dispatch_vector [NVIC_NUM_VECTORS ] @ ".nvictable " ;
56
56
#endif
57
57
58
58
extern uint32_t __Vectors [];
You can’t perform that action at this time.
0 commit comments