File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff 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
4454SECTIONS
@@ -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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments