Skip to content

Commit 9478eb7

Browse files
committed
address comments from review (warn users, also support 833)
1 parent d6019de commit 9478eb7

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

Diff for: linker/nrf52833.ld

+16
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ MEMORY
3939

4040
/** Location in UICR where mbr params page address is stored. */
4141
UICR_MBR_PARAM_PAGE(r) : ORIGIN = 0x10001018, LENGTH = 0x04
42+
43+
/** Location in UICR of REGOUT0 (used to set voltage levels for VCC at boot)
44+
*
45+
* IMPORTANT NOTE: This controls the voltage provided on the VCC output of the CPU. Changing this value from the default
46+
* can physically damage parts on your board. If using a SWD debugger you should consider connecting the Vref input
47+
* for that debugger to the VCC rail. Think carefully before using this feature.
48+
* Example usage:
49+
* __attribute__ ((section(".uicrREGOUT0"))) volatile uint32_t m_uicr_regout0 = 0xfffffff4;
50+
*/
51+
UICR_REGOUT0(r) : ORIGIN = 0x10001304, LENGTH = 0x04
4252
}
4353

4454
SECTIONS
@@ -74,6 +84,12 @@ SECTIONS
7484
KEEP(*(.uicrMbrParamsPageAddress))
7585
} > UICR_MBR_PARAM_PAGE
7686

87+
/* Write REGOUT0 in UICR. */
88+
.uicrREGOUT0 :
89+
{
90+
KEEP(*(.uicrREGOUT0))
91+
} > UICR_REGOUT0
92+
7793
.dbl_reset(NOLOAD) :
7894
{
7995

Diff for: linker/nrf52840.ld

+8-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@ MEMORY
4242
/** Location in UICR where mbr params page address is stored. */
4343
UICR_MBR_PARAM_PAGE(r) : ORIGIN = 0x10001018, LENGTH = 0x04
4444

45-
/** Location in UICR of REGOUT0 (used to set voltage levels for VCC at boot) */
45+
/** Location in UICR of REGOUT0 (used to set voltage levels for VCC at boot)
46+
*
47+
* IMPORTANT NOTE: This controls the voltage provided on the VCC output of the CPU. Changing this value from the default
48+
* can physically damage parts on your board. If using a SWD debugger you should consider connecting the Vref input
49+
* for that debugger to the VCC rail. Think carefully before using this feature.
50+
* Example usage:
51+
* __attribute__ ((section(".uicrREGOUT0"))) volatile uint32_t m_uicr_regout0 = 0xfffffff4;
52+
*/
4653
UICR_REGOUT0(r) : ORIGIN = 0x10001304, LENGTH = 0x04
4754
}
4855

0 commit comments

Comments
 (0)