Skip to content

Commit d30a815

Browse files
areuschmkatanbaf
authored andcommitted
Zephyr: Add support for FVP
adds corstone300 FVP to the platforms supported by the zephyr. We use the Iris debugger to communicate with the emulator via semihosting, due to the FVP serial port's faulty behavior. also changes the generated micro-projects build system from make to ninja.
1 parent aea82c6 commit d30a815

File tree

13 files changed

+590
-62
lines changed

13 files changed

+590
-62
lines changed

apps/microtvm/zephyr/template_project/CMakeLists.txt.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ cmake_minimum_required(VERSION 3.13.1)
2121

2222
set(ENV{QEMU_BIN_PATH} "${CMAKE_SOURCE_DIR}/qemu-hack")
2323

24-
set(QEMU_PIPE "\${QEMU_PIPE}") # QEMU_PIPE is set by the calling TVM instance.
24+
set(QEMU_PIPE <QEMU_PIPE> CACHE PATH "Path to QEMU pipe")
2525

2626
<CMAKE_ARGS>
2727

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash -e
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
19+
set -x
20+
21+
ARGS=( "$(basename $0)" )
22+
23+
if [ "${FVP_BIN_PATH}" != "" ]; then
24+
ARGS=( ${FVP_BIN_PATH}/${ARGS[0]} )
25+
fi
26+
27+
ARGS=( "${ARGS[@]}"
28+
--iris-server
29+
--print-port-number
30+
-C cpu0.semihosting-enable=1
31+
-C mps3_board.telnetterminal0.mode=raw
32+
-C mps3_board.telnetterminal1.mode=raw
33+
-C mps3_board.telnetterminal2.mode=raw
34+
-C mps3_board.telnetterminal0.start_telnet=0
35+
-C mps3_board.telnetterminal1.start_telnet=0
36+
-C mps3_board.telnetterminal2.start_telnet=0
37+
)
38+
39+
while [ "$#" -gt 0 ]; do
40+
ARGS=( "${ARGS[@]}" "$1" )
41+
shift
42+
done
43+
44+
"${ARGS[@]}"

0 commit comments

Comments
 (0)