File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_NRF51822 Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,18 @@ void SystemCoreClockUpdate(void)
44
44
45
45
void SystemInit (void )
46
46
{
47
+ NRF_NVMC -> CONFIG = (NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos );
48
+ while (NRF_NVMC -> READY == NVMC_READY_READY_Busy ){
49
+ }
50
+ //write FWID (NRF_UICR->FWID is readonly)
51
+ * (uint32_t * )0x10001010 = 0xFFFF0049 ;
52
+
53
+ while (NRF_NVMC -> READY == NVMC_READY_READY_Busy ){
54
+ }
55
+
56
+ NRF_NVMC -> CONFIG = (NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos );
57
+ while (NRF_NVMC -> READY == NVMC_READY_READY_Busy ){
58
+ }
47
59
// Prepare the peripherals for use as indicated by the PAN 26 "System: Manual setup is required
48
60
// to enable the use of peripherals" found at Product Anomaly document for your device found at
49
61
// https://www.nordicsemi.com/. The side effect of executing these instructions in the devices
You can’t perform that action at this time.
0 commit comments