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); _sidata = LOADADDR(.data);
/* Initialized data sections goes into RAM, load LMA copy after code */ /* Initialized data sections goes into RAM, load LMA copy after code */
.data : .data :
{ {
. = ALIGN(4); . = ALIGN(4);
_sdata = .; /* create a global symbol at data start */ _sdata = .; /* create a global symbol at data start */
@ -145,12 +145,12 @@ SECTIONS
_edata = .; /* define a global symbol at data end */ _edata = .; /* define a global symbol at data end */
} >RAM AT> FLASH } >RAM AT> FLASH
/* Uninitialized data section */ /* Uninitialized data section */
. = ALIGN(4); . = ALIGN(4);
.bss : .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 */ _sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss; __bss_start__ = _sbss;
*(.bss) *(.bss)
@ -173,7 +173,7 @@ SECTIONS
. = ALIGN(8); . = ALIGN(8);
} >RAM } >RAM
/* Remove information from the standard libraries */ /* Remove information from the standard libraries */
/DISCARD/ : /DISCARD/ :
@ -185,5 +185,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .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 /** Tick priority is used in HAL_RCC_OscConfig, so we need to enable it now
*/ */
HAL_InitTick(0); HAL_InitTick(0);
/** Configure the main internal regulator output voltage /** Configure the main internal regulator output voltage
*/ */
HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1); HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1);

View File

@ -1,4 +1,4 @@
/* /*
* The MIT License (MIT) * The MIT License (MIT)
* *
* Copyright (c) 2019 Ha Thach (tinyusb.org) * Copyright (c) 2019 Ha Thach (tinyusb.org)

View File

@ -11,7 +11,7 @@ include $(TOP)/$(BOARD_PATH)/board.mk
# -------------- # --------------
CFLAGS += \ CFLAGS += \
-DCFG_TUSB_MCU=OPT_MCU_STM32G0 -DCFG_TUSB_MCU=OPT_MCU_STM32G0
# GCC Flags # GCC Flags
GCC_CFLAGS += \ GCC_CFLAGS += \
-flto \ -flto \