Skip to content

Commit 7e6138e

Browse files
committed
Update layer for Corstone-320
1 parent 77431fb commit 7e6138e

34 files changed

+1580
-4234
lines changed

board/Corstone-320/Board-U85.clayer.yml

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,50 @@ layer:
77
connections:
88
- connect: Corstone-320
99
provides:
10-
- AVH_VIDEO
10+
- CMSIS_USART
11+
- STDOUT
12+
- STDERR
13+
- Heap: 786432
1114

1215
define:
16+
- CMSIS_target_header: \"Corstone-320.h\"
1317
- ETHOSU85
1418
- ARM_MODEL_USE_PMU_COUNTERS
1519

1620
packs:
1721
- pack: ARM::CMSIS
22+
- pack: ARM::CMSIS-Compiler@^2.1.0
23+
- pack: ARM::ethos-u-core-driver@^1.25.2
1824
- pack: ARM::[email protected]
1925

2026
components:
21-
- component: ARM::CMSIS:CORE
27+
- component: CMSIS:CORE
2228

23-
- component: ARM::Device:Definition
24-
- component: ARM::Device:Startup&C Startup
29+
- component: CMSIS Driver:USART
2530

26-
- component: ARM::Device:Native Driver:Timeout
27-
- component: ARM::Device:Native Driver:SysCounter
28-
- component: ARM::Device:Native Driver:SysTimer
31+
- component: CMSIS-Compiler:CORE
32+
- component: CMSIS-Compiler:STDERR:Custom
33+
- component: CMSIS-Compiler:STDIN:Custom
34+
- component: CMSIS-Compiler:STDOUT:Custom
2935

30-
- component: ARM::Machine Learning:NPU Support:Ethos-U Driver&Generic U85
36+
- component: Device:Definition
37+
- component: Device:Startup&C Startup
38+
39+
- component: Device:Native Driver:SysCounter
40+
- component: Device:Native Driver:SysTimer
41+
- component: Device:Native Driver:Timeout
42+
- component: Device:Native Driver:UART
43+
44+
- component: Machine Learning:NPU Support:Ethos-U Driver&Generic U85
3145

3246
groups:
3347
- group: Board
3448
files:
3549
- file: ./main.c
3650
- file: ./main.h
37-
- file: ./uart_cmsdk_apb.c
38-
- file: ./uart_stdout.h
39-
- file: ./uart_config.h
40-
- file: ./retarget.c
41-
42-
- group: Streaming Interface
43-
files:
44-
- file: ./vsi/include/arm_vsi.h
45-
- file: ./vsi/audio/driver/audio_drv.c
46-
- file: ./vsi/audio/include/audio_drv.h
47-
- file: ./vsi/video/source/video_drv.c
48-
- file: ./vsi/video/include/video_drv.h
51+
- file: ./ethos_setup.c
52+
- file: ./retarget_stdio.c
4953

5054
linker:
51-
- script: ./mps4-sse-320.sct
55+
- script: ./Corstone-320.ld
56+
# - regions: ./regions_SSE-320.h

board/Corstone-320/Board.clayer.yml

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,50 +7,45 @@ layer:
77
connections:
88
- connect: Corstone-320
99
provides:
10-
- AVH_VIDEO
11-
10+
- CMSIS_USART
11+
- STDOUT
12+
- STDERR
13+
- Heap: 786432
1214

1315
define:
14-
- CORSTONE320_FVP
16+
- CMSIS_target_header: \"Corstone-320.h\"
1517
- ARM_MODEL_USE_PMU_COUNTERS
16-
- ETHOSU
17-
- ETHOSU85
18-
- ETHOSU_ARCH: u85
1918

2019
packs:
20+
- pack: ARM::CMSIS
21+
- pack: ARM::CMSIS-Compiler@^2.1.0
2122
- pack: ARM::[email protected]
22-
- pack: ARM::[email protected]
2323

2424
components:
25-
- component: ARM::CMSIS:CORE
25+
- component: CMSIS:CORE
2626

27-
- component: ARM::Device:Definition
28-
- component: ARM::Device:Startup&C Startup
27+
- component: CMSIS Driver:USART
2928

30-
- component: ARM::Device:Native Driver:Timeout
31-
- component: ARM::Device:Native Driver:SysCounter
32-
- component: ARM::Device:Native Driver:SysTimer
29+
- component: CMSIS-Compiler:CORE
30+
- component: CMSIS-Compiler:STDERR:Custom
31+
- component: CMSIS-Compiler:STDIN:Custom
32+
- component: CMSIS-Compiler:STDOUT:Custom
3333

34-
- component: ARM::Machine Learning:NPU Support:Ethos-U Driver&Generic U85
34+
- component: Device:Definition
35+
- component: Device:Startup&C Startup
3536

37+
- component: Device:Native Driver:SysCounter
38+
- component: Device:Native Driver:SysTimer
39+
- component: Device:Native Driver:Timeout
40+
- component: Device:Native Driver:UART
3641

3742
groups:
3843
- group: Board
3944
files:
4045
- file: ./main.c
4146
- file: ./main.h
42-
- file: ./uart_cmsdk_apb.c
43-
- file: ./uart_stdout.h
44-
- file: ./uart_config.h
45-
- file: ./retarget.c
46-
47-
- group: Streaming Interface
48-
files:
49-
- file: ./vsi/include/arm_vsi.h
50-
- file: ./vsi/audio/driver/audio_drv.c
51-
- file: ./vsi/audio/include/audio_drv.h
52-
- file: ./vsi/video/source/video_drv.c
53-
- file: ./vsi/video/include/video_drv.h
47+
- file: ./retarget_stdio.c
5448

5549
linker:
56-
- script: ./mps4-sse-320.ld
50+
- script: ./Corstone-320.ld
51+
# - regions: ./regions_SSE-320.h

board/Corstone-320/Corstone-320.h

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*---------------------------------------------------------------------------
2+
* Copyright (c) 2025 Arm Limited (or its affiliates).
3+
* All rights reserved.
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+
#ifndef CORSTONE_320_H_
20+
#define CORSTONE_320_H_
21+
22+
#include "Driver_USART.h"
23+
24+
// CMSIS Driver instances of Board peripherals
25+
#define CMSIS_DRIVER_USART 0 // CMSIS Driver USART instance number
26+
27+
// Retarget stdio to CMSIS UART
28+
#define RETARGET_STDIO_UART 0
29+
30+
// CMSIS Drivers
31+
extern ARM_DRIVER_USART Driver_USART0; /* Serial */
32+
33+
#ifdef CMSIS_shield_header
34+
#include CMSIS_shield_header
35+
#endif
36+
37+
#endif /* CORSTONE_320_H_ */

0 commit comments

Comments
 (0)