mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/nrf51822: fixed issue with disabled RAM
- on certain devices the second RAM bank might be disabled after reset, this fix makes sure its enabled
This commit is contained in:
parent
86c85d86e8
commit
d75a85a2aa
@ -20,6 +20,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#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++);
|
||||
|
Loading…
Reference in New Issue
Block a user