mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-15 12:08:59 +00:00
feat(core): switch DISC2 to use newer U5G variant
[no changelog]
This commit is contained in:
parent
5894c34f58
commit
5c101ab800
@ -855,7 +855,7 @@ if 'STM32F427xx' in CPPDEFINES_HAL or 'STM32F429xx' in CPPDEFINES_HAL:
|
||||
'$DD if=$TARGET of=${TARGET}.p1 skip=0 bs=128k count=6',
|
||||
'$CP $TARGET ' + BINARY_NAME,
|
||||
]
|
||||
elif 'STM32U5A9xx' in CPPDEFINES_HAL or 'STM32U585xx' in CPPDEFINES_HAL:
|
||||
elif 'STM32U5G9xx' in CPPDEFINES_HAL or 'STM32U585xx' in CPPDEFINES_HAL:
|
||||
action_bin=[
|
||||
'$OBJCOPY -O binary -j .vendorheader -j .header -j .flash -j .data -j .confidential $SOURCE ${TARGET}',
|
||||
'$HEADERTOOL -h $TARGET ' + ('-D' if not PRODUCTION else ''),
|
||||
|
@ -1,4 +1,4 @@
|
||||
INCLUDE "./embed/trezorhal/stm32u5/linker/u5a/memory.ld";
|
||||
INCLUDE "./embed/trezorhal/stm32u5/linker/u5g/memory.ld";
|
||||
|
||||
ENTRY(reset_handler)
|
||||
|
@ -1,4 +1,4 @@
|
||||
INCLUDE "./embed/trezorhal/stm32u5/linker/u5a/memory.ld";
|
||||
INCLUDE "./embed/trezorhal/stm32u5/linker/u5g/memory.ld";
|
||||
|
||||
ENTRY(reset_handler)
|
||||
|
@ -1,4 +1,4 @@
|
||||
INCLUDE "./embed/trezorhal/stm32u5/linker/u5a/memory.ld";
|
||||
INCLUDE "./embed/trezorhal/stm32u5/linker/u5g/memory.ld";
|
||||
|
||||
ENTRY(reset_handler)
|
||||
|
@ -1,4 +1,4 @@
|
||||
INCLUDE "./embed/trezorhal/stm32u5/linker/u5a/memory.ld";
|
||||
INCLUDE "./embed/trezorhal/stm32u5/linker/u5g/memory.ld";
|
||||
|
||||
ENTRY(reset_handler)
|
||||
|
@ -15,4 +15,4 @@ MCU_SRAM4_SIZE = 16K;
|
||||
MCU_SRAM5 = 0x301A0000;
|
||||
MCU_SRAM5_SIZE = 832K;
|
||||
MCU_SRAM6 = 0x30270000;
|
||||
MCU_SRAM6_SIZE = 0K ;
|
||||
MCU_SRAM6_SIZE = 512K ;
|
@ -1,4 +1,4 @@
|
||||
INCLUDE "./embed/trezorhal/stm32u5/linker/u5a/memory.ld";
|
||||
INCLUDE "./embed/trezorhal/stm32u5/linker/u5g/memory.ld";
|
||||
|
||||
ENTRY(reset_handler)
|
||||
|
@ -12,12 +12,12 @@ def configure(
|
||||
paths: list[str],
|
||||
) -> list[str]:
|
||||
features_available: list[str] = []
|
||||
board = "D002/boards/stm32u5a9j-dk.h"
|
||||
board = "D002/boards/stm32u5g9j-dk.h"
|
||||
hw_model = get_hw_model_as_number("D002")
|
||||
hw_revision = 0
|
||||
|
||||
mcu = "STM32U5A9xx"
|
||||
linker_script = """embed/trezorhal/stm32u5/linker/u5a/{target}.ld"""
|
||||
mcu = "STM32U5G9xx"
|
||||
linker_script = """embed/trezorhal/stm32u5/linker/u5g/{target}.ld"""
|
||||
|
||||
stm32u5_common_files(env, defines, sources, paths)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user