Signed-off-by: Mengsk <admin@hifiphile.com>
This commit is contained in:
Mengsk
2025-09-29 16:17:46 +02:00
parent 387c28a25a
commit 2f9f5c6840
7 changed files with 14 additions and 15 deletions

View File

@@ -26,12 +26,6 @@
/* Entry Point */
ENTRY(Reset_Handler)
/* Highest address of the user mode stack */
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
_Min_Heap_Size = 0x200; /* required amount of heap */
_Min_Stack_Size = 0x400; /* required amount of stack */
/* Memories definition */
MEMORY
{
@@ -39,6 +33,12 @@ MEMORY
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 256K
}
/* Highest address of the user mode stack */
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
_Min_Heap_Size = 0x200; /* required amount of heap */
_Min_Stack_Size = 0x400; /* required amount of stack */
/* Sections */
SECTIONS
{
@@ -173,4 +173,4 @@ SECTIONS
}
.ARM.attributes 0 : { *(.ARM.attributes) }
}
}

View File

@@ -7,4 +7,4 @@ function(update_board TARGET)
target_compile_definitions(${TARGET} PUBLIC
STM32U083xx
)
endfunction()
endfunction()

View File

@@ -126,4 +126,4 @@ static inline void board_vbus_sense_init(void)
}
#endif
#endif /* BOARD_H_ */
#endif /* BOARD_H_ */

View File

@@ -9,4 +9,4 @@ LD_FILE = $(BOARD_PATH)/STM32U083MCTx_FLASH.ld
JLINK_DEVICE = STM32U083MC
# flash target using on-board stlink
flash: flash-stlink
flash: flash-stlink

View File

@@ -179,4 +179,4 @@ void HardFault_Handler(void) {
// -nostdlib/-nostartfiles.
void _init(void) {
}
}

View File

@@ -46,4 +46,4 @@ SRC_S_GCC += $(ST_CMSIS)/Source/Templates/gcc/startup_${MCU_VARIANT}.s
SRC_S_IAR += $(ST_CMSIS)/Source/Templates/iar/startup_${MCU_VARIANT}.s
# Linker
LD_FILE_IAR ?= $(ST_CMSIS)/Source/Templates/iar/linker/$(MCU_VARIANT)_flash.icf
LD_FILE_IAR ?= $(ST_CMSIS)/Source/Templates/iar/linker/$(MCU_VARIANT)_flash.icf

View File

@@ -164,7 +164,7 @@
* of HAL callback registration/unregistration feature for the HAL
* driver(s). This allows user application to provide specific callback
* functions thanks to HAL_PPP_RegisterCallback() rather than overwriting
* the default weak callback functions (see each stm32n6xx_hal_ppp.h file
* the default weak callback functions (see each stm32u0xx_hal_ppp.h file
* for possible callback identifiers defined in HAL_PPP_CallbackIDTypeDef
* for each PPP peripheral).
*/
@@ -254,7 +254,7 @@
#ifdef HAL_LCD_MODULE_ENABLED
#include "stm32u0xx_hal_lcd.h"
#endif /* HAL_LTDC_MODULE_ENABLED */
#endif /* HAL_LCD_MODULE_ENABLED */
#ifdef HAL_OPAMP_MODULE_ENABLED
#include "stm32u0xx_hal_opamp.h"
@@ -335,4 +335,3 @@
#endif
#endif /* __STM32U0xx_HAL_CONF_H */