diff --git a/cpu/nrf51822/startup.c b/cpu/nrf51822/startup.c index f229ba5073..b0189c5bdf 100644 --- a/cpu/nrf51822/startup.c +++ b/cpu/nrf51822/startup.c @@ -20,6 +20,7 @@ #include #include "board.h" +#include "cpu.h" /** * memory markers as defined in the linker script @@ -57,6 +58,11 @@ void reset_handler(void) uint32_t *dst; uint32_t *src = &_etext; + /* make sure all RAM blocks are turned on + * -> see NRF51822 Product Anomaly Notice (PAN) #16 for more details + */ + NRF_POWER->RAMON = 0xf; + /* load data section from flash to ram */ for (dst = &_srelocate; dst < &_erelocate; ) { *(dst++) = *(src++);