Skip to content

Commit d7dae24

Browse files
Removed UICR edit.
1 parent 4b49861 commit d7dae24

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_NRF51822/system_nrf51822.c

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -43,33 +43,7 @@ void SystemCoreClockUpdate(void)
4343
}
4444

4545
void SystemInit(void)
46-
{
47-
48-
//Write the necessary UICR and FWID values if needed
49-
if (NRF_UICR->CLENR0 == 0xFFFFFFFF){
50-
NRF_NVMC->CONFIG = (NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos);
51-
while (NRF_NVMC->READY == NVMC_READY_READY_Busy){
52-
}
53-
54-
NRF_UICR->CLENR0 = 0x14000;
55-
while (NRF_NVMC->READY == NVMC_READY_READY_Busy){
56-
}
57-
58-
//write FWID (NRF_UICR->FWID is readonly)
59-
*(uint32_t *)0x10001010 = 0xFFFF0049;
60-
61-
while (NRF_NVMC->READY == NVMC_READY_READY_Busy){
62-
}
63-
64-
NRF_NVMC->CONFIG = (NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos);
65-
while (NRF_NVMC->READY == NVMC_READY_READY_Busy){
66-
}
67-
68-
NVIC_SystemReset();
69-
while (true){
70-
}
71-
}
72-
46+
{
7347
// Prepare the peripherals for use as indicated by the PAN 26 "System: Manual setup is required
7448
// to enable the use of peripherals" found at Product Anomaly document for your device found at
7549
// https://www.nordicsemi.com/. The side effect of executing these instructions in the devices

0 commit comments

Comments
 (0)