Skip to content

Commit

Permalink
NRF: Migrate ARM Compiler 5 feature re-locate zero initialized variables
Browse files Browse the repository at this point in the history
ARM Compiler 6 does not support placing a zero-initialized variable in a
zero-initialized section with a given name.
The migration path for this feature is what is as done in this commit.
The name of the section is what comes after `.bss.` (`nvictable` in thi case).
  • Loading branch information
hugueskamba committed May 30, 2020
1 parent c7759fe commit 2032bbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#endif

#if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
__attribute__ ((section(".bss.nvictable"),zero_init))
__attribute__ ((section(".bss.nvictable")))
uint32_t nrf_dispatch_vector[NVIC_NUM_VECTORS];
#elif defined(__GNUC__)
__attribute__ ((section(".nvictable")))
Expand Down

0 comments on commit 2032bbf

Please sign in to comment.