This commit is contained in:
HiFiPhile
2023-04-14 17:22:25 +02:00
parent 413b0a7da5
commit 71d2ccd78f
4 changed files with 7 additions and 9 deletions

View File

@@ -134,7 +134,7 @@ SECTIONS
_sidata = LOADADDR(.data);
/* Initialized data sections goes into RAM, load LMA copy after code */
.data :
.data :
{
. = ALIGN(4);
_sdata = .; /* create a global symbol at data start */
@@ -145,12 +145,12 @@ SECTIONS
_edata = .; /* define a global symbol at data end */
} >RAM AT> FLASH
/* Uninitialized data section */
. = ALIGN(4);
.bss :
{
/* This is used by the startup in order to initialize the .bss secion */
/* This is used by the startup in order to initialize the .bss section */
_sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss;
*(.bss)
@@ -173,7 +173,7 @@ SECTIONS
. = ALIGN(8);
} >RAM
/* Remove information from the standard libraries */
/DISCARD/ :
@@ -185,5 +185,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) }
}

View File

@@ -67,7 +67,7 @@ static inline void board_clock_init(void)
/** Tick priority is used in HAL_RCC_OscConfig, so we need to enable it now
*/
HAL_InitTick(0);
/** Configure the main internal regulator output voltage
*/
HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1);