Add bootloader support for Seeed Arch-MAX

pull/11894/head
toyowata 2019-10-17 10:05:03 +09:00 committed by adbridge
parent 67fdf6c6f9
commit 9ab22274a6
5 changed files with 37 additions and 6 deletions

View File

@ -171,6 +171,12 @@
"SPI_MISO": "D12", "SPI_MISO": "D12",
"SPI_CLK": "D13", "SPI_CLK": "D13",
"SPI_CS": "D10" "SPI_CS": "D10"
},
"ARCH_MAX": {
"SPI_MOSI": "PC_3",
"SPI_MISO": "PC_2",
"SPI_CLK": "PB_10",
"SPI_CS": "PE_2"
} }
} }
} }

View File

@ -1,5 +1,13 @@
/* Linker script to configure memory regions. */ /* Linker script to configure memory regions. */
#if !defined(MBED_APP_START)
#define MBED_APP_START 0x08000000
#endif
#if !defined(MBED_APP_SIZE)
#define MBED_APP_SIZE 0x80000
#endif
#if !defined(MBED_BOOT_STACK_SIZE) #if !defined(MBED_BOOT_STACK_SIZE)
#define MBED_BOOT_STACK_SIZE 0x400 #define MBED_BOOT_STACK_SIZE 0x400
#endif #endif
@ -10,7 +18,7 @@ M_CRASH_DATA_RAM_SIZE = 0x100;
MEMORY MEMORY
{ {
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K
RAM (rwx) : ORIGIN = 0x20000188, LENGTH = 128k - 0x188 RAM (rwx) : ORIGIN = 0x20000188, LENGTH = 128k - 0x188
} }

View File

@ -1,11 +1,13 @@
/*###ICF### Section handled by ICF editor, don't touch! ****/ /*###ICF### Section handled by ICF editor, don't touch! ****/
/*-Editor annotation file-*/ /*-Editor annotation file-*/
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
if (!isdefinedsymbol(MBED_APP_START)) { define symbol MBED_APP_START = 0x08000000; }
if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x80000; }
/*-Specials-*/ /*-Specials-*/
define symbol __ICFEDIT_intvec_start__ = 0x08000000; define symbol __ICFEDIT_intvec_start__ = MBED_APP_START;
/*-Memory Regions-*/ /*-Memory Regions-*/
define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; define symbol __ICFEDIT_region_ROM_start__ = MBED_APP_START;
define symbol __ICFEDIT_region_ROM_end__ = 0x0807FFFF; define symbol __ICFEDIT_region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
define symbol __NVIC_start__ = 0x20000000; define symbol __NVIC_start__ = 0x20000000;
define symbol __NVIC_end__ = 0x20000187; define symbol __NVIC_end__ = 0x20000187;
define symbol __region_CRASH_DATA_RAM_start__ = 0x20000188; define symbol __region_CRASH_DATA_RAM_start__ = 0x20000188;

View File

@ -3833,6 +3833,7 @@
"core": "Cortex-M4F", "core": "Cortex-M4F",
"supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"],
"program_cycle_s": 2, "program_cycle_s": 2,
"components_add": ["SD", "FLASHIAP"],
"extra_labels_add": [ "extra_labels_add": [
"STM32F4", "STM32F4",
"STM32F407", "STM32F407",
@ -3855,9 +3856,10 @@
} }
}, },
"release_versions": ["2", "5"], "release_versions": ["2", "5"],
"overrides": {"lse_available": 0},
"device_name": "STM32F407VETx", "device_name": "STM32F407VETx",
"bootloader_supported": true,
"overrides": { "overrides": {
"lse_available": 0,
"network-default-interface-type": "ETHERNET" "network-default-interface-type": "ETHERNET"
} }
}, },

View File

@ -363208,7 +363208,20 @@
"units": 1 "units": 1
} }
}, },
"sectors": null, "sectors": [
[
134217728,
16384
],
[
134283264,
65536
],
[
134348800,
131072
]
],
"sub_family": "STM32F407", "sub_family": "STM32F407",
"vendor": "STMicroelectronics:13" "vendor": "STMicroelectronics:13"
}, },