File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822
hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3 Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,14 @@ void SystemCoreClockUpdate(void)
62
62
void SystemInit (void )
63
63
{
64
64
#if defined(TARGET_NRF_32MHZ_XTAL )
65
- // For 32MHz external XTAL such as Taiyo Yuden
65
+ /* For 32MHz HFCLK XTAL such as Taiyo Yuden
66
+ Physically, tiny footprint XTAL oscillate higher freq. To make BLE modules smaller, some modules
67
+ are using 32MHz XTAL.
68
+ This code wriging the value 0xFFFFFF00 to the UICR (User Information Configuration Register)
69
+ at address 0x10001008, to make nRF51 works with 32MHz system clock. This register will be overwritten
70
+ by SoftDevice to 0xFFFFFFFF, the default value. Each hex files built with mbed classic online compiler
71
+ contain SoftDevice, so that, this code run once just after the hex file will be flashed onto nRF51.
72
+ After changing the value, nRF51 need to reboot. */
66
73
if (* (uint32_t * )0x10001008 == 0xFFFFFFFF )
67
74
{
68
75
NRF_NVMC -> CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos ;
Original file line number Diff line number Diff line change 1
1
/* mbed Microcontroller Library
2
- * Copyright (c) 2013 Nordic Semiconductor
2
+ * Copyright (c) 2015 Nordic Semiconductor
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1
1
/* mbed Microcontroller Library
2
- * Copyright (c) 2006-2013 ARM Limited
2
+ * Copyright (c) 2006-2015 ARM Limited
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
You can’t perform that action at this time.
0 commit comments