From 715c07b06aa3462ceeef38b777e8526d3bffe472 Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Thu, 25 Feb 2021 09:49:34 +0100 Subject: Adding CTest script Adding script to run CTest on the Corstone-300 FVP. The script will detect which version of the FVP that is used and pass the correct command line arguments. Updating README with instructions how to run tests, either using CTest or calling the FVP directly. Update FreeRTOS example to exit with the status of the inference. Minor adjustments are needed to the output vectors. Change-Id: I8a1a740b0dec2ce35d95e5c5d91f4b57a2c8e1fa --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 73a1fb5..5dd5090 100644 --- a/README.md +++ b/README.md @@ -28,23 +28,32 @@ building. This will produce an elf file which can be run on the FVP. ``` $ cmake -B build/corstone-300 targets/corstone-300 -$ make -C build/corstone-300 +$ cd build/corstone-300 +$ make ``` It is also possible to build with a different toolchain. ``` $ cmake -B build/corstone-300 targets/corstone-300 -DCMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/arm-none-eabi-gcc.cmake -$ make -C build/corstone-300 +$ cd build/corstone-300 +$ make ``` ### Testing Assuming that the Corstone-300 FVP has been downloaded, installed and placed in -the PATH variable. Then the software binary can be tested like this. +the PATH variable. Then the software binaries can be tested like this. ``` -$ FVP_Corstone_SSE-300_Ethos-U55 build/corstone-300/ethosu_corstone_300.elf +$ ctest +``` + +Individual applications can also be run directly with the FVP, for example like +this. + +``` +$ FVP_Corstone_SSE-300_Ethos-U55 applications/freertos/freertos.elf ``` # License -- cgit v1.2.1