From 9c6f9f8afcb003fd72944918d6b6e200d68c0918 Mon Sep 17 00:00:00 2001 From: Kshitij Sisodia Date: Fri, 20 May 2022 14:30:02 +0100 Subject: MLECO-3225: Using official support for Arm Cortex-M85 CPU. * CMake version requirement bumped up to 3.21.0 * CMake 3.22.4 installed in the local Python virtualenv * CPU flags updated in toolchain files. * Using __ARM_FEATURE_DSP instead of potentially defining ARM_MATH_DSP wrongly. * CMake project version bumped up to 22.05.0 Changes also made for MLECO-3107 (pack generation): * TensorFlow Lite Micro CMSIS-pack version updated to 1.22.02. * Change to using __ARM_FEATURE_DSP will also help the generated pack. Partial changes for MLECO-3095: * CMSIS updated to version post 5.9.0 * TensorFlow Lite Micro updated to latest available * Ethos-U driver and core-platform repositories updated to 20.05_rc2 tags. Change-Id: I012c9e65897aed8ce589cff9bfe3a19efc3edeb9 Signed-off-by: Kshitij Sisodia --- docs/sections/building.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/sections/building.md b/docs/sections/building.md index 8fe9f8a..c135afd 100644 --- a/docs/sections/building.md +++ b/docs/sections/building.md @@ -44,6 +44,8 @@ Before proceeding, it is *essential* to ensure that the following prerequisites Component: ARM Compiler 6.16 ``` +> **Note:** To compile for Arm® Cortex™-M85 CPU (default CPU for Arm® Corstone-310), 6.18 is the minimum version required. + Alternatively, use: ```commandline @@ -63,19 +65,24 @@ Before proceeding, it is *essential* to ensure that the following prerequisites - If you are using the proprietary Arm Compiler, ensure that the compiler license has been correctly configured. -- CMake version 3.16.3 or above is installed and available on the path. Test CMake by running: +- CMake version 3.21.0 or above is installed and available on the path. Test CMake by running: ```commandline cmake --version ``` ```log - cmake version 3.16.3 - ``` + cmake version 3.22.4 + ``` -> **Note:** How to add cmake to the path: +> **Note:** Required version of CMake is also installed in the Python3 virtual environment created by +> `setup_default_resources.py` script. See [Fetching resource files](./building.md#fetching-resource-files) section. > -> `export PATH=/path/to/cmake/bin:$PATH` +> To add CMake to the PATH on Ubuntu for example, use: `export PATH=/absolute/path/for/cmake/:${PATH}` +> Once `setup_default_resources.py` has been executed, activating the virtual environment will enable you +> to use that CMake. Alternatively, from the root of the repository, you could use: +> +> `export PATH=$(readlink -e resources_downloaded/env/bin):${PATH}` - Python 3.8 or above is installed. Check your current installed version of Python by running: @@ -319,6 +326,8 @@ Arm® *Ethos™-U65* NPU. > **Note:** This script requires Python version 3.8 or higher. Please make sure all [build prerequisites](./building.md#build-prerequisites) > are satisfied. +> +> **Note:** This script also installs required version of CMake into the virtual environment, which can be used by activating it. Additional command line arguments supported by this script are: -- cgit v1.2.1