summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2022-05-31MLECO-3213: Downgrade requirment from Python3.8 to Python3.7Richard Burton
Update Vela to 3.4.0 Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: If203d29d6884219cd4947a5753a1fb8d8284f174
2022-05-25MLECO-3290: Correction for TAKshitij Sisodia
Timing adapter parameter correction for Arm Ethos-U65's default configuration. Change-Id: I5ec9412f4893d0bfb0447ce71b788099123b6cf9
2022-05-25MLECO-3185: Documentation updatesKshitij Sisodia
Documentation updated to reflect refactoring changes in the last few weeks. Change-Id: Ic7abf5cc3af9898123049e890c189ed74e505309
2022-05-23MLECO-3225: Using official support for Arm Cortex-M85 CPU.Kshitij Sisodia
* 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 <kshitij.sisodia@arm.com>
2022-05-17MLECO-2985 Adding Corstone-310 supportKshitij Sisodia
Change-Id: Ifa4b11154478355c10cb3e747b9938a74afd242b Signed-off-by: Eanna O Cathain <eanna.ocathain@arm.com>
2022-05-16Minor change to help build API libs independently.Richard Burton
* Remove unused CMake left behind after API refactoring. * Include TensorFlow source path directory for common_api target when building CMSIS packs. Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I3ed63781edddf24887f61a971bfadaa037739fa8
2022-05-13MLECO-3101: Minor changes for CMSIS packKshitij Sisodia
Improvements based on feedback from initial tests done with the generated pack. Change-Id: Ia769dd6264c53e6b9337473e1c50bdfa6469a216 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-05-09MLECO-3184: Adding helper for CMSIS pack genKshitij Sisodia
Adding CMakeLists and use-case-api.yml file under scripts/cmake. These files can be used by CMSIS pack generation tools. Change-Id: I6fff715c71fc068184a1a038e6b70a3547c30ff4
2022-05-06MLECO-3183: Refactoring application sourcesKshitij Sisodia
Platform agnostic application sources are moved into application api module with their own independent CMake projects. Changes for MLECO-3080 also included - they create CMake projects individial API's (again, platform agnostic) that dependent on the common logic. The API for KWS_API "joint" API has been removed and now the use case relies on individual KWS, and ASR API libraries. Change-Id: I1f7748dc767abb3904634a04e0991b74ac7b756d Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-04-21MLECO-3110: Fix for warnings from TensorFlow Lite MicroKshitij Sisodia
Changes to fix "Pillow not found" warnings from TensorFlow Lite Micro build. Change-Id: I42a9b3f6df746ac3e34585e0c79ffdf35da97aef Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-04-11MLECO-3071: Reducing stack sizesKshitij Sisodia
After evaluating stack sizes (after HAL refactoring) we can safely reduce the stack allocation for all the applications. Change-Id: I7d9cd4edd28753fe3f8a668d8c557c2788f4c823 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-03-17MLECO-3036: Update to use Pathlib in Python scriptsRichard Burton
* Pathlib used in Python scripts over os * Bug fix for build_default.py * Minor code style updates Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I5fc2e582a84443c3fb79250eb711b960d63ed8fd
2022-03-15MLECO-3002: Update source gen requirements.txtRichard Burton
Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I0f6bf4f891ced4b0da1802546ccf345383af1d93
2022-03-14MLECO-2919: Restructuring to standardise HAL APIsKshitij Sisodia
* LCD module component created (removed from individual platform packs). * retarget.c moved out into its own component that wraps the uart module. It also have the native stub for GetLine => paved the way for removing data_acq module from profiles. * shortened names for components' dir for npu and ta * remove peripheral_memmap and peripheral_irqs headers from platform_drivers.h. There should be no need for these to be included in the top level now. These should be private headers. * cmsis_device moved in as a component. * Pyenv created by set_up_default_resource.py will also install packages that CMake's source generator needs. TODO's: * Remove timer from profiles (MLECO-3096) Change-Id: I9d6ea2f4f291788f40a16ed507019563c8d7f205
2022-03-04MLECO-2984: Refactor componentsKshitij Sisodia
* Use UART component from Ethos-U core-platform * Components as cmake project Change-Id: I053f3a59800abc20216e6a4df8555db357e3f21d Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
2022-03-04MLECO-2978: Update to 22.02 dependenciesRichard Burton
* Core-platform now a depdenency for timing adapter Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I54f3773bdf91083fa1513be15372fcf2231bea2c
2022-03-02MLECO-2881: Using MD5 sum for downloaded resources check.Kshitij Sisodia
Removing git as a requirement for the checks performed for downloaded resources. Another minor change is renaming of RTE_components.h to RTE_Components.h as per the convention. Change-Id: If93f80f2f5dfa6a3f143259904c33b3b6d3a6e7c Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-03-01MLECO-2881: Minor improvements for downloaded resourcesKshitij Sisodia
Check could have been bypassed if the script path provided as an argument was incorrect. Also, a minor update in the CMake function to fix the path. Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com> Change-Id: Id3cd4027843783e3ed8700eac503e7ba3f09ad04
2022-03-01MLECO-2983: Preliminary support to allow semihostingKshitij Sisodia
Adding basic support to allow applications to build with semihosting support. Default state is always disabled. Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com> Change-Id: I1d34c3a246560aaffcb34eee801e1a87d887d559
2022-02-28MLECO-2976: Configurable Ethos-U cache size for Dedicated_SramIsabella Gottardi
MLECO-2949: Platform drivers should own NPU and TA init Change-Id: I13606a0197f137816bae803eb9d7d46c358b5fb8 Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
2022-02-25MLECO-2881: Revise resources_downloaded based on optimised models' metadataIsabella Gottardi
Change-Id: I12777c3818463c11d6351db0b4961a2bc0b00b18 Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
2022-02-23MLECO-2948: Minor refactoring for platform modules.Kshitij Sisodia
Reducing dependency on cmsis-device sources as these will be removed under MLECO-2944. Also, starting to refactor to allow HAL to drop NPU and TA init routines - this will happen in future CRs. Added platform driver for native, and subsequent patches will attempt to get rid of the HAL "profile" specific sources and allow platform stub implementations at a level below HAL. This will allow platforms drivers to only override the range of functions that they actually want to implement and will fall back on stubs for the rest. In this CR only "utils" have been removed. Change-Id: I09b4a28e20847a07a956c818c6f47c74aab89063
2022-02-21MLECO-2927: Build Arm Ethos-U NPU driver outside TFLuNina Drozd
* TensorFlow CMake uses Arm Ethos-U NPU driver lib path * armclang DWARF level config flag removed * uses and mentions of DWARF level removed * TensorFlow uses Arm Cortex-M generic target * removed Arm Cortex-M custom target makefile and dir Change-Id: Ie0d3edb5473462ef8552f8b9f832190de5e99a7c
2022-02-14MLECO-2970: Moving Profiler out as a CMake target.Kshitij Sisodia
Profiler is a stand alone static lib that will depend on log and hal targets. Change-Id: Ibbff289c6760982f54ae278d95a054e73db018c8
2022-02-11MLECO-2752: Minor refactoring for native global steps.alexander
And further optimisations of extendability for platform build steps. Added a list for excluded use-cases. Change-Id: I5a9398bbeb595a5bf2ea39b81623e4f20238f948 Signed-off-by: alexander <alexander.efremov@arm.com>
2022-02-10MLECO-2682: CMake and source refactoring.alexander
MLECO-2930: logging macros were extracted from hal.h and used separately around the code. MLECO-2931: arm_math lib introduced, cmsis-dsp removed from top level linkage. MLECO-2915: platform related post-build steps. Change-Id: Id718884e22f262a5c070ded3f3f5d4b048820147 Signed-off-by: alexander <alexander.efremov@arm.com>
2022-02-08MLECO-2900: Update Cmake descLiam Barry
Added QSPI_SRAM_BASE for Secure region. Updated UART and other peripherals affected by change in reserved region Updated names of some base addresses in cmake and template files Error in TRM swapping individual for combined GPIO IRQs reported Follow-up - Marked region in TRM not covered in CMake Change-Id: I046e740053477fe3a51bc171a2b7e28f4a9f0523 Signed-off-by: Liam Barry <liam.barry@arm.com>
2022-02-02MLECO-2855: Move profiling outside application/mainIsabella Gottardi
Change-Id: I182bfa55b5ae743d6f0b9f5c766b746202a7968d Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
2022-01-17MLECO-2671: Bumping up Armclang min version.Kshitij Sisodia
Issues identified with Armclang 6.15; bumping up the minimum version required to Armclang 6.16. Change-Id: I33ec21f04e0c954919cacaf6f3c4d99ef8f517cc Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-01-04MLECO-2834: Tests for Softmax function.Kshitij Sisodia
Added tests for recently added Softmax function in PlatformMath module. Change-Id: Iacf1f4eaf33a92e1d42275000765e7152d17176b
2021-12-14MLECO-2639 Updated tensorflow.cmake to remove unused parameters for native ↵Ayaan Masood
builds -Added conditonals to ethos-u-driver and cmsis path for making tflite micro library native build Change-Id: I89ce87ef368392b087cfca1898531bd2c5a2ba1c
2021-11-26MLECO-2592: Moving to latest stack of dependenciesRichard Burton
* Currently using 21.11 release candidates Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I696b48c3a4c87c5dca3bbee957049790d900b48e
2021-11-25MLECO-2426: Support for new Corstone-300 app note AN552 rev B.Kshitij Sisodia
These changes will limit the use of FPGA internal SRAM from a max of 4MiB to 2MiB and the BRAM from 2MiB to 1MiB. Change-Id: I69c8e695aee26ff4f235bfe83ffd26efbd66f547
2021-11-23MLECO-1935: All common CMake user options consolidated.Kshitij Sisodia
For easier look up and maintenance, all common CMake user options have been consolidated in one CMake file. NOTE: the individual use case specific options are still within the correspoinding use case CMake files. Change-Id: Id887f7b2c763f4d3eb997d997cf466684d0089b6
2021-11-18MLECO-2525 Upgrade to C++ 14ayamas01
-Updated CMake to use C++ 14 -Removed cmsis makefile include from tensorflow.cmake -Documentation update -Added more flags for processor in CMake Change-Id: I1c2b72141e98a5cf8bb09176d7c331da3b05b4c5
2021-11-16MLECO-2471: Move arena-cache-size to setup scriptLiam Barry
Signed-off-by: Liam Barry <liam.barry@arm.com> Change-Id: Ibf712cb9359b9bc9977d4f77aec1d7c7f4245825
2021-11-10MLECO-2354 MLECO-2355 MLECO-2356: Moving noise reduction to public repositoryRichard Burton
* Use RNNoise model from PMZ * Add Noise reduction use-case Signed-off-by: Richard burton <richard.burton@arm.com> Change-Id: Ia8cc7ef102e22a5ff8bfbd3833594a4905a66057
2021-10-29MLECO-2512: Minor improvement for helper scripts.Kshitij Sisodia
Python scripts 'build_default.py' and 'set_up_default_resources.py' now allow building for non-default Ethos-U configurations: H32, H64, H256 and Y512. Change-Id: Iefdbf135410396c4dc0be73462644725d4b47910
2021-10-25MLECO-2458 and MLECO-2476 [Fix] VWW IFM quant stepIsabella Gottardi
* Changed image->cc conversion to be similar with preprocessing of img_class and vww models: images are scaled maintaing the aspect ration and then the centre crop of the correct size is taken. * VWW applies input quantization info to the int8 image (prior converted to [0,1] float range). * Changed adult_blur to a image without person. * Fix menu print when selecting a specific ifm to run (Select message was displayed after typing something) Change-Id: Ie6cde7ab4835ea842667b87397458a5d32131df3
2021-10-15MLECO-2423: [Fix] Case insensitive name clashIsabella Gottardi
* Fixed vww usage warnings (imageData in RunInferene and _GetImageIdx function) Change-Id: I2c37e4e4cc8c8eca841690f2df8d525ed516ecc8
2021-10-05MLECO-2395: Allow users to select Ethos-U memory modeIsabella Gottardi
Change-Id: Icf09410f12072e8d7850dd1e540c3243af24ed09
2021-10-05MLECO-2400: Test GNU toolchain 10.3-2021.07Isabella Gottardi
Change-Id: Ifd6d3d72abb1e8ce058e612295d01a148962627e
2021-10-04MLECO-2344: Documentation improvementKshitij Sisodia
Documenting how the target platform's SRAM size impacts configuration files, sources and linker scripts. Change-Id: I8647ab67b73bafd0c44e6c586a1b5f2602bf03f5
2021-09-28MLECO-2348: Update dependencies to 21.08Cisco Cervellera
* Update all dependancies to 21.08 * Refactoring to fit the new changes Change-Id: Icc2ae3628ee6e8fbc0af2cd8f91e368c9ccae053
2021-09-24MLECO-2345: Adding dynamic load support for FVPsKshitij Sisodia
With this patch, the generic inference runner use-case can be configured to accept the model tflite file at run-time via the FVP's command line parameters. Same is true for the IFM and the inference results can be dumped out too. NOTE: this change is only for supporting the FVP, the FPGA implementation will not allow additional loading for the changes in this patch to be useful. Change-Id: I1318bd5b0cfb7bb635ced6fe58d22c3e401d2547
2021-08-13MLECO-1982: Update to using latest ethos-u embedded componentsIsabella Gottardi
Change-Id: I744a4eb2553207004c9403b956e5bd9e9b352bfb Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
2021-08-12MLECO-1904: Update to use latest TFLuRichard Burton
* Now uses seperate TFLu github repo * Fixes to align with API changes * Update ASR model ops and re-enable ASR inference tests * Set default release level to release_with_logs Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I57612088985dece1413c5c00a6e442381e07dd91
2021-08-03MLECO-2051: Work with Corstone-300 + Ethos-U65Cisco Cervellera
Change-Id: I64ab930a1de5210f435f91bed7600a700581946f Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com> Reviewed-on: https://eu-gerrit-2.euhpc.arm.com/c/ml/ecosystem/ml-embedded-evaluation-kit/+/459126 Tested-by: mlecosys <mlecosys@arm.com> Tested-by: George Gekov <george.gekov@arm.com> Reviewed-by: George Gekov <george.gekov@arm.com> Reviewed-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2021-07-23Generating bin files for simple_platform.Kshitij Sisodia
Breaking down the elf(axf) file into bin blobs for the simple_platform target too. Change-Id: Ie909508433ef03f8b4a32e04bc69353aed0d0849
2021-07-09MLECO-2036: Fix Vela3 documentation references & update Vela .ini configurationGeorge Gekov
Signed-off-by: George Gekov <george.gekov@arm.com> Change-Id: I92b9ab60974ad266246994deae5833f7f374633d