Skip to content

Commit 8ff5cf9

Browse files
authored
Merge pull request #11700 from toyowata/arch_max_bootloader
Add bootloader support for Seeed Arch-MAX
2 parents 0efea30 + 5389536 commit 8ff5cf9

File tree

5 files changed

+37
-6
lines changed

5 files changed

+37
-6
lines changed

components/storage/blockdevice/COMPONENT_SD/mbed_lib.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@
171171
"SPI_MISO": "D12",
172172
"SPI_CLK": "D13",
173173
"SPI_CS": "D10"
174+
},
175+
"ARCH_MAX": {
176+
"SPI_MOSI": "PC_3",
177+
"SPI_MISO": "PC_2",
178+
"SPI_CLK": "PB_10",
179+
"SPI_CS": "PE_2"
174180
}
175181
}
176182
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xE/device/TOOLCHAIN_GCC_ARM/STM32F407XG.ld

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
/* Linker script to configure memory regions. */
22

3+
#if !defined(MBED_APP_START)
4+
#define MBED_APP_START 0x08000000
5+
#endif
6+
7+
#if !defined(MBED_APP_SIZE)
8+
#define MBED_APP_SIZE 0x80000
9+
#endif
10+
311
#if !defined(MBED_BOOT_STACK_SIZE)
412
#define MBED_BOOT_STACK_SIZE 0x400
513
#endif
@@ -10,7 +18,7 @@ M_CRASH_DATA_RAM_SIZE = 0x100;
1018

1119
MEMORY
1220
{
13-
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K
21+
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
1422
CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K
1523
RAM (rwx) : ORIGIN = 0x20000188, LENGTH = 128k - 0x188
1624
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xE/device/TOOLCHAIN_IAR/stm32f407xx.icf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
/*###ICF### Section handled by ICF editor, don't touch! ****/
22
/*-Editor annotation file-*/
33
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4+
if (!isdefinedsymbol(MBED_APP_START)) { define symbol MBED_APP_START = 0x08000000; }
5+
if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x80000; }
46
/*-Specials-*/
5-
define symbol __ICFEDIT_intvec_start__ = 0x08000000;
7+
define symbol __ICFEDIT_intvec_start__ = MBED_APP_START;
68
/*-Memory Regions-*/
7-
define symbol __ICFEDIT_region_ROM_start__ = 0x08000000;
8-
define symbol __ICFEDIT_region_ROM_end__ = 0x0807FFFF;
9+
define symbol __ICFEDIT_region_ROM_start__ = MBED_APP_START;
10+
define symbol __ICFEDIT_region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
911
define symbol __NVIC_start__ = 0x20000000;
1012
define symbol __NVIC_end__ = 0x20000187;
1113
define symbol __region_CRASH_DATA_RAM_start__ = 0x20000188;

targets/targets.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3837,6 +3837,7 @@
38373837
"core": "Cortex-M4F",
38383838
"supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"],
38393839
"program_cycle_s": 2,
3840+
"components_add": ["SD", "FLASHIAP"],
38403841
"extra_labels_add": [
38413842
"STM32F4",
38423843
"STM32F407",
@@ -3859,9 +3860,10 @@
38593860
}
38603861
},
38613862
"release_versions": ["2", "5"],
3862-
"overrides": {"lse_available": 0},
38633863
"device_name": "STM32F407VETx",
3864+
"bootloader_supported": true,
38643865
"overrides": {
3866+
"lse_available": 0,
38653867
"network-default-interface-type": "ETHERNET"
38663868
}
38673869
},

tools/arm_pack_manager/index.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363208,7 +363208,20 @@
363208363208
"units": 1
363209363209
}
363210363210
},
363211-
"sectors": null,
363211+
"sectors": [
363212+
[
363213+
134217728,
363214+
16384
363215+
],
363216+
[
363217+
134283264,
363218+
65536
363219+
],
363220+
[
363221+
134348800,
363222+
131072
363223+
]
363224+
],
363212363225
"sub_family": "STM32F407",
363213363226
"vendor": "STMicroelectronics:13"
363214363227
},

0 commit comments

Comments
 (0)