Skip to content

Commit 5637c4f

Browse files
authored
Merge pull request #7 from Evagan2018/main
Added support for Corestone_320
2 parents 9474f55 + ffcf3dd commit 5637c4f

File tree

16 files changed

+2226
-2
lines changed

16 files changed

+2226
-2
lines changed

.github/workflows/hello-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
{type: CM33_FP, model: FVP_MPS2_Cortex-M33, uart: fvp_mps2.UART0},
3434
{type: CS300, model: FVP_Corstone_SSE-300, uart: mps3_board.uart0},
3535
{type: CS310, model: FVP_Corstone_SSE-310, uart: mps3_board.uart0},
36-
{type: CS315, model: FVP_Corstone_SSE-315, uart: mps4_board.uart0}
36+
{type: CS315, model: FVP_Corstone_SSE-315, uart: mps4_board.uart0},
37+
{type: CS320, model: FVP_Corstone_SSE-320, uart: mps4_board.uart0}
3738
]
3839
build: [
3940
{type: Release},
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Parameters:
2+
# instance.parameter=value #(type, mode) default = 'def value' : description : [min..max]
3+
#---------------------------------------------------------------------------------------------------
4+
mps4_board.visualisation.disable-visualisation=1 # (bool , init-time) default = '0' : Enable/disable visualisation
5+
vis_hdlcd.disable_visualisation=1 # (bool , init-time) default = '0' : Enable/disable visualisation
6+
mps4_board.uart0.shutdown_on_eot=1 # (bool , init-time) default = '0' : Shutdown simulation when a EOT (ASCII 4) char is transmitted (useful for regression tests when semihosting is not available)
7+
#---------------------------------------------------------------------------------------------------

Hello.cbuild-pack.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ cbuild-pack:
1212
- resolved-pack: ARM::[email protected]
1313
selected-by-pack:
1414
- ARM::SSE_315_BSP
15+
- resolved-pack: ARM::[email protected]
16+
selected-by-pack:
17+
- ARM::SSE_320_BSP
1518
- resolved-pack: ARM::[email protected]
1619
selected-by-pack:
1720
- ARM::V2M_MPS3_SSE_300_BSP

Hello.cproject.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,42 @@ project:
1919
- +CS300
2020
- +CS310
2121
- +CS315
22+
- +CS320
2223

2324
- component: Device:Native Driver:UART
2425
for-context:
2526
- +CS300
2627
- +CS310
2728
- +CS315
29+
- +CS320
2830

2931
- component: Device:Native Driver:SysCounter
3032
for-context:
3133
- +CS300
3234
- +CS310
3335
- +CS315
36+
- +CS320
3437

3538
- component: Device:Native Driver:SysTimer
3639
for-context:
3740
- +CS300
3841
- +CS310
3942
- +CS315
43+
- +CS320
4044

4145
- component: Device:Native Driver:Timeout
4246
for-context:
4347
- +CS300
4448
- +CS310
4549
- +CS315
50+
- +CS320
4651

4752
- component: Device:Definition
4853
for-context:
4954
- +CS300
5055
- +CS310
5156
- +CS315
57+
- +CS320
5258

5359
# List of source groups and files added to a project or a layer.
5460
groups:

Hello.csolution.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ solution:
1616
- pack: ARM::CMSIS-RTX
1717
- pack: ARM::V2M_MPS3_SSE_300_BSP # Corstone-300 (Cortex-M55)
1818
- pack: ARM::V2M_MPS3_SSE_310_BSP # SSE-310-MPS3_FVP
19-
- pack: ARM::SSE_315_BSP # SSE-315-FVP
19+
- pack: ARM::SSE_315_BSP # SSE-315-FVP
20+
- pack: ARM::SSE_320_BSP # SSE-320-FVP
2021
- pack: Keil::V2M-MPS2_CMx_BSP # For Cortex-M0 .. M33 ; AVH-CM* devices.
2122
- pack: Keil::V2M-MPS2_IOTKit_BSP # For the IOTKit_CM23_VHT, IOTKit_CM33_VHT, and IOTKit_CM33_FP_VHT devices
2223
- pack: Keil::V2M-MPS3_IOTKit_BSP # For the IOTKit_CM33_MPS3 and the IOTKit_CM33_FP_MPS3 devices
@@ -33,6 +34,9 @@ solution:
3334
- type: CS315
3435
device: ARM::SSE-315-FVP
3536

37+
- type: CS320
38+
device: ARM::SSE-320-FVP
39+
3640
- type: CM0plus
3741
device: ARM::CMSDK_CM0plus_VHT
3842

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
/*
2+
* Copyright (c) 2023 Arm Limited. All rights reserved.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the License); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
14+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
/* ----------------------------------------------------------------------------
20+
Stack seal size definition
21+
*----------------------------------------------------------------------------*/
22+
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
23+
#define __STACKSEAL_SIZE 8
24+
#else
25+
#define __STACKSEAL_SIZE 0
26+
#endif
27+
28+
/*----------------------------------------------------------------------------
29+
Scatter File Definitions definition
30+
*----------------------------------------------------------------------------*/
31+
32+
LR_ROM0 __ROM0_BASE __ROM0_SIZE {
33+
34+
ER_ROM0 __ROM0_BASE __ROM0_SIZE {
35+
*.o (RESET, +First)
36+
*(InRoot$$Sections)
37+
*(+RO +XO)
38+
}
39+
40+
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
41+
ER_CMSE_VENEER AlignExpr(+0, 32) (__ROM0_SIZE - AlignExpr(ImageLength(ER_ROM0), 32)) {
42+
*(Veneer$$CMSE)
43+
}
44+
#endif
45+
46+
RW_NOINIT __RAM0_BASE UNINIT (__RAM0_SIZE - __HEAP_SIZE - __STACK_SIZE - __STACKSEAL_SIZE) {
47+
*.o(.bss.noinit)
48+
*.o(.bss.noinit.*)
49+
}
50+
51+
RW_RAM0 AlignExpr(+0, 8) (__RAM0_SIZE - __HEAP_SIZE - __STACK_SIZE - __STACKSEAL_SIZE - AlignExpr(ImageLength(RW_NOINIT), 8)) {
52+
*(+RW +ZI)
53+
}
54+
55+
#if __HEAP_SIZE > 0
56+
ARM_LIB_HEAP (AlignExpr(+0, 8)) EMPTY __HEAP_SIZE { ; Reserve empty region for heap
57+
}
58+
#endif
59+
60+
ARM_LIB_STACK (__RAM0_BASE + __RAM0_SIZE - __STACKSEAL_SIZE) EMPTY -__STACK_SIZE { ; Reserve empty region for stack
61+
}
62+
63+
#if __STACKSEAL_SIZE > 0
64+
STACKSEAL +0 EMPTY __STACKSEAL_SIZE { ; Reserve empty region for stack seal immediately after stack
65+
}
66+
#endif
67+
68+
#if __RAM1_SIZE > 0
69+
RW_RAM1 __RAM1_BASE __RAM1_SIZE {
70+
.ANY (+RW +ZI)
71+
}
72+
#endif
73+
74+
#if __RAM2_SIZE > 0
75+
RW_RAM2 __RAM2_BASE __RAM2_SIZE {
76+
.ANY (+RW +ZI)
77+
}
78+
#endif
79+
80+
#if __RAM3_SIZE > 0
81+
RW_RAM3 __RAM3_BASE __RAM3_SIZE {
82+
.ANY (+RW +ZI)
83+
}
84+
#endif
85+
}
86+
87+
#if __ROM1_SIZE > 0
88+
LR_ROM1 __ROM1_BASE __ROM1_SIZE {
89+
ER_ROM1 +0 __ROM1_SIZE {
90+
.ANY (+RO +XO)
91+
}
92+
}
93+
#endif
94+
95+
#if __ROM2_SIZE > 0
96+
LR_ROM2 __ROM2_BASE __ROM2_SIZE {
97+
ER_ROM2 +0 __ROM2_SIZE {
98+
.ANY (+RO +XO)
99+
}
100+
}
101+
#endif
102+
103+
#if __ROM3_SIZE > 0
104+
LR_ROM3 __ROM3_BASE __ROM3_SIZE {
105+
ER_ROM3 +0 __ROM3_SIZE {
106+
.ANY (+RO +XO)
107+
}
108+
}
109+
#endif

0 commit comments

Comments
 (0)