Skip to content

Commit 8c44edf

Browse files
author
thread-liu
committed
[update] stm32mp1 link
1 parent 8191607 commit 8c44edf

File tree

8 files changed

+167
-236
lines changed

8 files changed

+167
-236
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ env:
119119
- RTT_BSP='stm32/stm32l476-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
120120
- RTT_BSP='stm32/stm32l496-ali-developer' RTT_TOOL_CHAIN='sourcery-arm'
121121
- RTT_BSP='stm32/stm32l496-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
122+
- RTT_BSP='stm32/stm32mp157a-st-discovery' RTT_TOOL_CHAIN='sourcery-arm'
122123
- RTT_BSP='stm32f20x' RTT_TOOL_CHAIN='sourcery-arm'
123124
- RTT_BSP='swm320-lq100' RTT_TOOL_CHAIN='sourcery-arm'
124125
# - RTT_BSP='taihu' RTT_TOOL_CHAIN='sourcery-ppc'

bsp/stm32/libraries/HAL_Drivers/config/mp1/dma_config.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
extern "C" {
1919
#endif
2020

21-
22-
2321
/* DMA2 stream0 */
2422
#if defined(BSP_SPI1_RX_USING_DMA) && !defined(SPI1_RX_DMA_INSTANCE)
2523
#define SPI1_DMA_RX_IRQHandler DMA2_Stream0_IRQHandler

bsp/stm32/stm32mp157a-st-discovery/board/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ menu "On-chip Peripheral Drivers"
4747
bool "Enable UART5"
4848
default n
4949
endif
50-
51-
source "../libraries/HAL_Drivers/Kconfig"
50+
source "../libraries/HAL_Drivers/Kconfig"
5251

5352
endmenu
5453

bsp/stm32/stm32mp157a-st-discovery/board/SConscript

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ CubeMX_Config/Common/System/system_stm32mp1xx.c
1313
CubeMX_Config/CM4/Src/stm32mp1xx_hal_msp.c
1414
''')
1515

16-
1716
path = [cwd]
1817
path += [cwd + '/CubeMX_Config/CM4/Inc']
1918
path += [cwd + '/ports']
2019

21-
2220
startup_path_prefix = SDK_LIB
2321

2422
if rtconfig.CROSS_TOOL == 'gcc':
@@ -28,18 +26,7 @@ elif rtconfig.CROSS_TOOL == 'keil':
2826
elif rtconfig.CROSS_TOOL == 'iar':
2927
src += [startup_path_prefix + '/STM32MPxx_HAL/CMSIS/Device/ST/STM32MP1xx/Source/Templates/iar/startup_stm32mp15xx.s']
3028

31-
if rtconfig.CROSS_TOOL == 'keil':
32-
CPPDEFINES = ['CORE_CM4,NO_ATOMIC_64_SUPPORT,METAL_INTERNAL,METAL_MAX_DEVICE_REGIONS=2,VIRTIO_SLAVE_ONLY,STM32MP157Axx,__LOG_TRACE_IO_']
33-
elif rtconfig.CROSS_TOOL == 'gcc':
34-
CPPDEFINES = ['CORE_CM4,NO_ATOMIC_64_SUPPORT,METAL_INTERNAL,METAL_MAX_DEVICE_REGIONS=2,VIRTIO_SLAVE_ONLY,STM32MP157Axx,__LOG_TRACE_IO_']
35-
elif rtconfig.CROSS_TOOL == 'iar':
36-
CPPDEFINES = ['CORE_CM4']
37-
CPPDEFINES += ['NO_ATOMIC_64_SUPPORT']
38-
CPPDEFINES += ['METAL_INTERNAL']
39-
CPPDEFINES += ['METAL_MAX_DEVICE_REGIONS=2']
40-
CPPDEFINES += ['VIRTIO_SLAVE_ONLY']
41-
CPPDEFINES += ['STM32MP157Axx']
42-
CPPDEFINES += ['__LOG_TRACE_IO_']
29+
CPPDEFINES = ['CORE_CM4','NO_ATOMIC_64_SUPPORT','METAL_INTERNAL','METAL_MAX_DEVICE_REGIONS=2','VIRTIO_SLAVE_ONLY','STM32MP157Axx','__LOG_TRACE_IO_']
4330

4431
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
4532

bsp/stm32/stm32mp157a-st-discovery/board/board.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ extern "C" {
2323
#endif
2424

2525
#define STM32_FLASH_START_ADRESS ((uint32_t)0x10000000)
26-
#define STM32_FLASH_SIZE (128 * 1024)
26+
#define STM32_FLASH_SIZE (256 * 1024)
2727
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
2828

2929
#define STM32_SRAM_SIZE (128)
30-
#define STM32_SRAM_END ((uint32_t)0x10020000 + (STM32_SRAM_SIZE * 1024))
30+
#define STM32_SRAM_END ((uint32_t)0x10040000 + (STM32_SRAM_SIZE * 1024))
3131

3232
#if defined(__CC_ARM) || defined(__CLANG_ARM)
3333
extern int Image$$RW_IRAM1$$ZI$$Limit;
@@ -37,8 +37,7 @@ extern int Image$$RW_IRAM1$$ZI$$Limit;
3737
#define HEAP_BEGIN (__segment_end("CSTACK"))
3838
#else
3939
extern int __bss_end__;
40-
//#define HEAP_BEGIN (&__bss_end__)
41-
#define HEAP_BEGIN (0x10020000 + 64 * 1024)
40+
#define HEAP_BEGIN (0x10040000 + 64 * 1024)
4241
#endif
4342

4443
#define HEAP_END STM32_SRAM_END
Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
11
/*###ICF### Section handled by ICF editor, don't touch! ****/
22
/*-Editor annotation file-*/
3-
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
3+
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
44
/*-Specials-*/
55
define symbol __ICFEDIT_intvec_start__ = 0x00000000;
66
/*-Memory Regions-*/
7-
define symbol __ICFEDIT_region_text_start__ = 0x10000000;
8-
define symbol __ICFEDIT_region_text_end__ = 0x1003FFFF;
9-
define symbol __ICFEDIT_region_data_start__ = 0x10040000;
10-
define symbol __ICFEDIT_region_data_end__ = 0x1005FFFF;
7+
define symbol __ICFEDIT_region_ROM_start__ = 0x10000000;
8+
define symbol __ICFEDIT_region_ROM_end__ = 0x1003FFFF;
9+
define symbol __ICFEDIT_region_RAM_start__ = 0x10040000;
10+
define symbol __ICFEDIT_region_RAM_end__ = 0x1005FFFF;
1111
/*-Sizes-*/
1212
define symbol __ICFEDIT_size_cstack__ = 0x400;
1313
define symbol __ICFEDIT_size_heap__ = 0x000;
1414
/**** End of ICF editor section. ###ICF###*/
1515

16-
1716
define memory mem with size = 4G;
18-
define region text_region = mem:[from __ICFEDIT_region_text_start__ to __ICFEDIT_region_text_end__];
19-
define region data_region = mem:[from __ICFEDIT_region_data_start__ to __ICFEDIT_region_data_end__];
20-
21-
keep { section .resource_table };
22-
".resource_table" : place in data_region {section .resource_table};
23-
17+
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
18+
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
2419

2520
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
26-
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
2721

2822
initialize by copy { readwrite };
29-
do not initialize { section .noinit};
23+
do not initialize { section .noinit };
3024

3125
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
32-
place in text_region { readonly };
33-
place in data_region { readwrite,
34-
block CSTACK, block HEAP};
26+
27+
place in ROM_region { readonly };
28+
place in RAM_region { readwrite, last block CSTACK};

0 commit comments

Comments
 (0)