aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-15Skip printing OFM with message_handler22.02-rc2Alexander Israelsson
Some networks have very big OFM which will completely fill the output buffer and hide more important information. The OFM is already saved as a file and does not need to be included in the output. Change-Id: I4174fd799ba2f31f187d5bf2718a92a19ecee5c1
2022-02-14README: Add section on how to specify NPU configJonny Svärd
Clarify that Python 3.8+ is a requirement Change-Id: I5fbfdc2e72e7cc75cae992ff2c9d308380838594
2022-02-11Fix compilation warningsDavide Grohmann
Change-Id: I57fed2a1b49a61822617b43a201a3125f566fd16
2022-02-10ThreadX demo app bug fix22.02-rc1Lior Dekel
Change-Id: I3f2f6732f8850e76971fad55035d829286d90a99
2022-02-08Updating baremetal modelsKristofer Jonsson
Change-Id: I18db0d2534882a75307b8af8dc572a91681b81e6
2022-02-04PMU begin and end eventsKristofer Jonsson
Restore print format for PMU output. Use begin and end events to enable the PMU cycle counter. Change-Id: Iaf2d9b78b031f34c0cde0296b4248dea38f19860
2022-02-02Replace deprecated word to comply with inclusive language guidelinesLedion Daja
Replace "master" word in the context of AXI protocol, with the recommended word "manager". Change-Id: If594db7ae96b3ad07afd156a8d788846f9bdb34d
2022-02-02Add PMU printsKristofer Jonsson
Update message handler application to output PMU counters to the log. Change-Id: Ib6002e7c0035d6736b58eed61a059553083348ce
2022-01-31PMU multi NPU supportKristofer Jonsson
Update sample applications to use an external context for the PMU configuration. The external context stored in the InferenceJob will be set as TFLu external context and will be returned in the ethosu_inference_begin() and ethosu_inference_end() callbacks. Change-Id: Ief1f0943e322c2b50e8b964017af59161f67de6b
2022-01-21Adding Corstone-Polaris targetKristofer Jonsson
Corstone-Polaris is the upcoming Corstone-3xx platform featuring the Cortex-Olympus CPU. Change-Id: I17b56b6e94f040e7f9a39dddad2e98309c82b294
2022-01-18Build system updatesKristofer Jonsson
Move finding Python after the project command. This was causing incremental CMake configurations to fail. Moving ETHOSU_TARGET_* variables after adding the common subdirectory. It is necessary to set the variables before the core driver is included. Change-Id: I1c6883061cb9247336f8b33d82d2e2de870634fa
2022-01-18Fix CMake warningsNir Ekhauz
Updating the minimum required CMake version fixes toolchain warnings for Arm Clang. Change-Id: I8f7371136739f6beb758d03cc76c2df17180f07c
2022-01-11Adapt secure/non-secure split of BRAMPer Åstrand
The size of the BRAM has changed, and thus change the split between secure and nonsecure, and the NSC region placement. Change-Id: I1f267049dbde76bdb17c800b95f36da704442042
2021-12-23PlatformNightly ThreadX bug fixLior Dekel
Increasing stack size for threads in ThreadX Change-Id: Ied7502422034a9fb1ac92aa5ebaa70b9d0bc9939
2021-12-22Timing adapter fix, init constructor priorityKristofer Jonsson
The timing adapters are attached to the Ethos-U AXI ports and should only be initialized if the platform has been built with NPU support. Add priority to init the constructor, insuring it will run before any other constructor. This is important because the init constructor sets up UART. Change-Id: I189687437b95b11f6503c7631720e7883c24ada6
2021-12-14Add mpu driver and remove interface libraryYulia Garbovich
from drivers Add mpu driver for upstreaming After removing of interface library,targets and applications will list explicitly which libraries to link Change-Id: Icfa449a2981093161f283e45b4d52ca6199371b8
2021-12-02Fixing compiler warningsKristofer Jonsson
Adjusting toolchain files which compiler warnings to enable. Fixing compiler warnings reported by Arm Clang and Arm GCC. Change-Id: I715e875904ffd7ecfe994d3093cdf066373981b1
2021-11-26Exclude ThreadX appliction21.11Kristofer Jonsson
Exclude ThreadX application if the NPU driver was not compiled into the project. Change-Id: I036443b4c2bb276152acb7ec3267580a06d2d901
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