aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-11-25Use CMake to find Python 3 interpreter21.11-rc3Kristofer Jonsson
The name of the Python 3 interpreter is ambiguous. 'python3' is not available on all systems and 'python' can be both a Python 2 and Python 3 interpreter. Change-Id: I4ea119c617d1746fd34ecdd118a7c25dfe17dc86
2021-11-25Exclude applications that depend on NPUKristofer Jonsson
Exclude applications that depend on the NPU, if the NPU driver library was not compiled by the project. Change-Id: I3fcb570cf155d589a9576266332ba519a11186f1
2021-11-22Updating required CMake version to 3.20Kristofer Jonsson
Change-Id: Icd870cad2917480a01d5f79897931c1effc66546
2021-11-18Updating required C compiler version to 1121.11-rc2Kristofer Jonsson
The -Ofast optimization level does not seem to be fully supported by C99, resulting in lower performance for CMSIS-NN optimized kernels. Updating the C standard to version 11 solves this. Change-Id: I81275f50d394de95186b7e35b0ec15d3cc3940ae
2021-11-17Add support for NinjaKristofer Jonsson
Add support for Ninja buider under both Linux and Windows. Updating generate_binaries.py to produce dependencies file. Removing files by wild card does not work with Ninja under Windows. Change-Id: I486463603de7413e09edcd959c329253867f4564
2021-11-16Add message_handler applicationYulia Garbovich
This is an example application for communication with Ethos-U kernel driver Change-Id: I1d602682cbfdf26a2b082a56ee6c38e93a49ab8d
2021-11-15Set default value for TFLu build typeYulia Garbovich
Set default to 'release_with_logs' to enable the TFLu profiler by default. Change-Id: If094caf0f844b54750d88e5071a8f9007774ccc4
2021-11-03Update documentationKristofer Jonsson
Updating MCC memory for new configurations of Corstone-300 FPGA. Adding information about required Python packages and tools. Adding information about run_platform.py script. Change-Id: I7a542db364ebcb2a4524823aff4b8864f62a8ae5
2021-11-03driver_unit_tests: Remove redundant codeJonny Svärd
Change-Id: I36bf18aa4c399064507156e76c1857a31242587a
2021-10-24Verify Corstone-300 AN552Nir Ekhauz
Set BRAM size to 1MB and SRAM size to 2MB for corstone-300 target in gcc and armclang. Change-Id: I5728948ba64fa69459f9a28d8b6459f7d63bd4d0
2021-10-19Default timing adapters mode valueKristofer Jonsson
Setting default value for the timing adapters mode register. Change-Id: I71efd96b8235d476a0d133c4f93cb97530172ab5
2021-10-19Add 11.16 to supported FVP versions in run_ctest.pyRickard Bolin
Change-Id: Iabc58b63b62fdd492175104f0ac787863d94d1ca
2021-10-18Configure timing adapter in run_platform.pyNir Ekhauz
Change-Id: Ib108298417980a586bed8c8b4e0bb5e57f238316
2021-10-06NPU configuration support update in relevant apps.Lior Dekel
Bare metal app - added all the configurations for the different NPUs. FreeRTOS app and driver_unit_conv test - excluded all NPU configurations except ethos-u55-128. Change-Id: I6f69526613cd18c572af1186e5997816fad246b4
2021-10-06FreeRTOS app bug fix.Lior Dekel
Change-Id: Ic0a900c29f0ff24a7505ff952f326643c1bff5c0
2021-10-05add fallthrough attribute to prevent fallthorugh warning in uart, corstone-300Annie Tallund
Change-Id: I207271d41a8dfa899ac5f53842790c4206657fe5
2021-10-04Revert "FreeRTOS app bug fix."Kristofer Jonsson
This reverts commit 43834ab8967d1e8f063533c8c8cbf84be8ccc1b0. Reason for revert: Temporarily backing out change to fix compilation issue for Cortex-M4. Change-Id: I98a4ba8ce44e0ca396b7eb052cec4adecb9fe0ad
2021-10-04FreeRTOS app bug fix.Lior Dekel
Change-Id: Ia5970925db31805a693e0c0dfc081375767a9b82
2021-09-30Add memory area to run_platform.pyNir Ekhauz
Control the placement of the model and the arena for baremetal application in SRAM/DRAM by 4 configurable options: a. Model in SRAM and Arena in SRAM b. Model in SRAM and Arena in DRAM c. Model in DRAM and Arena in DRAM w/o Scratch buffer d. Model in DRAM and Arena in DRAM with Scratch buffer in SRAM Change-Id: Ia154be8a1c88cb13aeee62e701c2db7719a9d71c
2021-09-23Fixing misspelled defineKristofer Jonsson
Change-Id: I02d0f516b471c09fe22086f15bcdf2dd2da34858
2021-09-14Enable the execution of run_platform.py when no values for pmu configuration ↵Nir Ekhauz
are defined Define default values Jira: MLBEDSW-5215 Change-Id: Ie498f7170804a2f1a6d3eb64fff4c859272efe2b
2021-09-09Document memory configurationsKristofer Jonsson
Change-Id: I165651921106acb6893750dfeabec7537188c223
2021-09-07Remove designated initializersJonny Svärd
Designated initializer support only arrived in C++20 standard. While most compilers will support it through extensions, remove them to increase portability. Change-Id: I31d885597b0d29a3cf67d5450d988805016a0d2d
2021-09-01run_platform.py PMU configurationNir Ekhauz
Enable configuration of up to 4 PMU counters Jira: MLBEDSW-4744 Change-Id: I08e9073d827033b3340bffd680288b1a83833d64
2021-08-18Fix: return value for GCC _write and _read is written/read chars21.08-rc321.08-rc221.08Davide Grohmann
When using ARMClang compiler the functions _sys_write and _sys_read should return the number of unprocessed characters, whilst when using GCC the functions _write and _read should return the number of processed (i.e., written or read) chars. The code was returning the unprocessed characters value in both cases (i.e., 0) making the calling code to exit early with error and stop further processing when using GCC. Hence no subsequent calls to write would be executed causing missing output on the console. For example, string truncation has been seen when printing on stderr. Note that the bug was not really visible when printing to stdout, but it was immediately exposed when using stderr. This was likely due to the fact that libc buffers the stdout output and flushes it only when encountering a new line char (\n), whilst no buffering is done on stderr. Indeed by printing whole buffers the problem was worked around and went unseen. Change-Id: I5a48d6a29441175b2a950716997332a8b9c34e10
2021-08-13Ensure same flags are used for both GCC and ARMClang21.08-rc1Davide Grohmann
Change-Id: Ib37930e7efb0663e9c39bb6c39af8cc62cf3f37c
2021-08-12small fixes to FreeRTOS app.Lior Dekel
Change-Id: Ib1e59fda457edc90ceb324f35252c3def451c751
2021-08-11Adding inference application for ThreadXLior Dekel
Change-Id: Icadb4ceb50997a31bafa2356bfa434568c056593
2021-08-10Adding FM 11.15 support to run_ctest scriptliodek01
Jira: NO-JIRA Change-Id: I5c31bc432d421ae7645474a24b0ce7a4be7cefb8
2021-07-01Increased heap and FreeRTOS stackKristofer Jonsson
Tensorflow lite micro has increased the size of the MicroProfiler. As a consequence the FreeRTOS application needs to increase the stack size allocate from the heap. Change-Id: I8e4df44767edaecee27d9571319ef72da5937a3b
2021-06-30Adding assembly compiler to toolchain filesliodek01
Change-Id: I4530ab1aa336ae4fc487745279f74ae4ebebe3d1
2021-06-30Support 'none' acceleratorKristofer Jonsson
Change-Id: Iada7cfaa42dc6f5706504ee78e975730048e0f3c
2021-06-28Building without NPUKristofer Jonsson
Support building applications for targets without a NPU. Change-Id: I04199b1c0444f23eadc6d4cf85195413dfd8bc97
2021-06-28Buildsystem restructuringKristofer Jonsson
- Allow linker file to be overriden - Disable Trustzone build for other targets than Corstone-300 - Make toolchain TARGET_CPU variable cached Change-Id: I98a15e1080e4bf49e029578888b1e4ce362bbab7
2021-06-22Add a requirements.txt to scripts folderJonny Svärd
Some scripts require external modules (from pip). Install using: python -m pip install -r requirements.txt NOTE: On some distributions python2 is still default, so to use python 3 it might be necessary to replace python on the above command line with python3 Update README.md to mention the python requirements. Change-Id: Ia7581c874570d92846095775f680238328f651b4
2021-06-15Using ref kernelsKristofer Jonsson
Tensorflow reference kernels are bit exact and should be used by the run_platform.py script to generate the expected OFM data. Change-Id: I90e688e753e5330aaaf9002abed23df0493ff99b
2021-06-09Add missing library dependencyKristofer Jonsson
Change-Id: Icfc30968f3d1bc0048a235eacec94b47097d662b
2021-06-08Remove hardcoded Ethos-U driver instanceJonny Svärd
Adjust to updated Ethos-U driver Change-Id: Ie374c29bec2baee4717634588b22f6db419ad9a3
2021-06-04Remove dependency on cppJonas Ohlsson
Remove dependency on cpp, and instead use the specified compiler to preprocess the linker scripts. Signed-off-by: Jonas Ohlsson <jonas.ohlsson@arm.com> Change-Id: I000082f8e90015b12f99ba3f616b6b3e07647873
2021-06-01Corstone-300 reduced SRAM sizeNir Ekhauz
Fix inconsistencies between the scatter file and linker script Jira: MLBEDSW-4596 Change-Id: I4d31fc89ef0d0371e1ba8758d60871674cf844a9
2021-05-27Add one eventRecordId per configured PMU event.21.05Jens Elofsson
Change-Id: I551ec9136d3ce9d89a066f6f63bb5fd9b5d39f80
2021-05-27Add ethosu_monitor example to baremetal application.21.05-rc3Jens Elofsson
Change-Id: Ided3ff5e2a5fc1f16e2fad0732f5464ccddbc96c
2021-05-26OptimizationsKristofer Jonsson
Setting NDEBUG for non debug builds. This will disabled the asserts used by the for example the Ethos-U driver. Disabling caches by default. Change-Id: I614edc09b99e9997af7e113c7565d64f273f3fa0
2021-05-24[Core Platform] Update and remove pmu "v2"-functionsAnton Moberg
NPU PMU interface currently have functions that have been stepped each time a compatibilty breaking changed has been introduced. Old entrypoints have been redefined with macro to use the latest version for backwards compatibility. This series of patches will remove any such functions and macro to unify the interface. Update: All PMU entrypoints to support updated interface Change-Id: I12113649cfbbe162f0fc66563868ec9df0382cbe
2021-05-19Add documentation for running on MPS3Per Åstrand
Change-Id: Ie5afef7bd07456e0fe2eb47c0ab6f979fc9aa5ea
2021-05-11Documenting startup and multi NPU21.05-rc2Kristofer Jonsson
Adding documentation and sequence diagrams for startup and multi NPU. Change-Id: I4a4a43e8bea089b6325f7d8285434017cbda25ec
2021-05-07Handle parallel buildsPer Åstrand
Change-Id: I142057dfe9429b6360fafcae4f9e1b4b8140f3d5
2021-05-05MLBEDSW-4228 Building on Windows21.05-rc1Jonas Ohlsson
Changes to facilitate building on Windows systems. Signed-off-by: Jonas Ohlsson <jonas.ohlsson@arm.com> Change-Id: Ib95bd89fe476790333bafccc3f6fa402b6569166
2021-05-04[Core Platform] Update to support removal of "_v"-functionsAnton Moberg
NPU driver interface currently have functions which have been stepped each time a compatibilty breaking changed has been introduced. Old entrypoints have been redefined with macro to use the latest version for backwards compatibility. This series of patches will remove any such functions and macro to unify the interface. Update: All driver entrypoints to support updated interface Change-Id: Ibe5fa7b2ac909eceb16a6879d4eaf9d0d7e36211
2021-05-04Output .map files for executable targetsPer Åstrand
Generate the map file for each executable target added with the helper function ethosu_add_executable. Change-Id: Ib8b26508f7c439c8cd12b90061cc42eb771d9fd5