Skip to content

Commit d6019de

Browse files
committed
Place data from .uicrREGOUT0 into UICR.REGOUT0 flash word.
Used to set VCC voltage upon power-up.
1 parent d6b28e6 commit d6019de

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

linker/nrf52840.ld

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ MEMORY
4141

4242
/** Location in UICR where mbr params page address is stored. */
4343
UICR_MBR_PARAM_PAGE(r) : ORIGIN = 0x10001018, LENGTH = 0x04
44+
45+
/** Location in UICR of REGOUT0 (used to set voltage levels for VCC at boot) */
46+
UICR_REGOUT0(r) : ORIGIN = 0x10001304, LENGTH = 0x04
4447
}
4548

4649
SECTIONS
@@ -81,6 +84,12 @@ SECTIONS
8184
KEEP(*(.uicrMbrParamsPageAddress))
8285
} > UICR_MBR_PARAM_PAGE
8386

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

0 commit comments

Comments
 (0)