-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[µTVM] Add support for mps2_an521 board (#7813)
* [µTVM] Zephyr: Allow user inform if a board is emulated Some boards supported by Zephyr that run emulated by default, i.e. their .yaml config file sets the field "simulation: qemu", don't have the prefix "qemu_" on their names, so µTVM can't currently recognize it as an emulated target to properly use the QEMU transporter (instead of the serial port) to open a session against it. Such a boards usually have real physical (hardware) counterparts, being specific boards and not generic or "fake" ones simply tied to a CPU type of interest. That commit allows the µTVM user to explicitly inform that µTVM needs to use the QEMU transporter to open a session against a given board by adding the suffix "-qemu" to the board name. That is necessary because for boards that don't have the name prefixed by "qemu_" and even though run emulated by default on Zephyr there is no easy way to detect them, since it's not possible to determine it by looking at any Cmake generated file or by using the `west` command to query that info. The case where the board is emulated by default but has the prefix "qemu_" in its board name is already handled by the current code. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> * [µTVM] Add new target mps2_an521 This commit adds a new µTVM target to support the Arm reference board MPS2-AN521, which is based upon a Cortex-m33 core. For more details about that board, please see: http://developer.arm.com/tools-and-software/development-boards/fpga-prototyping-boards/mps2 Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> * [µTVM] Add an example for the mps2_an521 board This commit adds an example on how to run the Zephyr demo under apps/ using as a target the Arm mps2_an521 board, which is emulated by default on Zephyr. The example is added to the tutorial script micro_tflite.py, where other examples for other targets exist. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> * Fix lint Fix lint accordingly to the CI error. * Satisfy lint Satisfy lint about boolean expression format. * Address suggestion from Andrew Address suggestion from Andrew in the review. Also updates the comment about suffix being trimmed off. Thanks, Gustavo
- Loading branch information
Showing
6 changed files
with
84 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
# This file is specific to the MPS2-AN512 board. | ||
|
||
# For intrinsics used by generated optimized operators. | ||
CONFIG_CMSIS_DSP=y | ||
|
||
# For random number generation. | ||
CONFIG_ENTROPY_GENERATOR=y | ||
CONFIG_TEST_RANDOM_GENERATOR=y | ||
|
||
# For debugging. | ||
CONFIG_LED=n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./qemu-system-i386 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters