aboutsummaryrefslogtreecommitdiff
path: root/applications
AgeCommit message (Collapse)Author
2022-05-19Handle network indices out of rangePer Åstrand
Check that getting the network succeeds before parsing the the buffer to avoid hardfault. Change-Id: I582412fb0e7459bf45fdb790df2d48401c1a2d0b
2022-05-19Move taskparams out of main stackPer Åstrand
FreeRTOS resets the stack to the running tasks. Move the task parameters to avoid the parameters to be overwritten. Change-Id: Ib22b3d49451ea8c97c6faf24bafc8bf0952b38a9
2022-05-18Update documentation with new path of Vela INI config fileLedion Daja
Change-Id: I1dabf8f675fa47fc9096393a29810fc430e006dc
2022-05-10Fix warning by adding missing delete operator functionsDavide Grohmann
Also override new/delete operators to call in FreeRTOS malloc/free in the freeRTOS example app. Change-Id: I08c0780c907e5fe90ccb1679869d3f41c87c2731
2022-05-09Update documentationKristofer Jonsson
Add documentation about how base addresses are used by the driver unit tests. Update message handler application to use TENSOR_ARENA_SIZE the same way as the FreeRTOS application. Add documenation about Corstone-310. Change-Id: I08a315b95ca757ce3449cb7af104b8f1ac7f8865
2022-05-09Add support for cancelling enqueued inferencesDavide Grohmann
If an enqueued inference is cancelled it is simply removed from the queue. Both a cancel inference response with status done and a inference response with status cancelled are sent back. Also override the new operators to call in the FreeRTOS allocator instead of malloc/free. Change-Id: I243e678aa6b996084c9b9be1d1b00ffcecc75bc9
2022-05-05Remove power handling code from driver_unit_testsJonny Svärd
Change-Id: I3b58425cf502a1f5b66fc798337f0b76358790f1
2022-05-05Initial support for inference cancellationDavide Grohmann
Infransctrure work to being able to send back and forth requests and responses for inference cancellations. The implementation is stubbed to always fail in this commit. Change-Id: Id7848930b81a3f38fe6c05323ccca2edd6b5b5bf
2022-05-04Change return value of mutex and semaphore handling functionsLedion Daja
Changed mutex lock/unlock and semaphore take/give functions to return an int value instead of void. In addition changed FreeRTOS and message_handler applications (also FreeRTOS-based) to ignore failure of xSemaphoreGive on binary semaphores, as it does not affect the correctness of such applications. Change-Id: I023c62dc8971488107679f6dd7a5967dec0380a8
2022-05-02Avoid blocking calls in input message handler taskDavide Grohmann
Remove output queue and associated blocking calls. Instead write directly in the mailbox ring buffer. If inference queue is full do not block, instead bail out immeditely and send back a message with rejected status. Change-Id: Id08a39792791fe383f8c01bf28b07a293a49e9b0
2022-04-27Add installation target to the message_handler applicationPer Åstrand
Change-Id: Ic21cc7690b1533f2db849a73ac25a7976bf02d1f
2022-04-26Add Corstone-310 targetKristofer Jonsson
Change-Id: Idcb2238895668ee4858c2e858c02c6765f4b1702
2022-04-21Add simple async API testing to driver_unit_testsJonny Svärd
Change-Id: Iae5733efb40a8fd11e7108e93cc719f67b4f1be3
2022-04-12Extract inference parsing in a dedicated libraryDavide Grohmann
Change-Id: I2753434badec7c5af2c19a2b32e5e808131ba519
2022-04-05Fix: threadx demo app semaphore should be initlaized to count 0Davide Grohmann
Otherwise the core_driver won't wait for the actual interrupt signaling inference completed and exit immediately. Change-Id: Ibb413d19701f9add4fd8c16137dbe59de5868ea9
2022-04-04Enable IRQs after Incoming Message HandlerKristofer Jonsson
Interrups must be enabled after the Incoming Message Handler has been initialized, else we might loose interrupts that were enabled before the firmware booted up. Change-Id: I3c18c7ff4585329b54b18f7556757b2b3e8fbc35
2022-03-31Ensure message-handler can be compiled without EthosU supportDavide Grohmann
Change-Id: I1ae0b1fa6d3c559afd10772778c16002ae93cc63
2022-03-29Network infoKristofer Jonsson
Add message for fetching meta data about built in network models. Change-Id: I757094c20848d4cb018db68b0455297bb03be463
2022-03-11Firmware resident modelKristofer Jonsson
Support building a network model into the firmware binary. The model can be placed by a scatter file or linker script in for example a low lateny high bandwidth memory like SRAM. Change-Id: Ic742abed65e20f0da4ded7adefb039389b68b767
2022-02-17Fixing compilation warnings in threadx demo appDavide Grohmann
Change-Id: Id765ba9adf9a2d134cc6cc0c04f9e6d7dada3657
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-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-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-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-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-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-16Add message_handler applicationYulia Garbovich
This is an example application for communication with Ethos-U kernel driver Change-Id: I1d602682cbfdf26a2b082a56ee6c38e93a49ab8d
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-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-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-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-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-12small fixes to FreeRTOS app.Lior Dekel
Change-Id: Ib1e59fda457edc90ceb324f35252c3def451c751
2021-08-11Adding inference application for ThreadXLior Dekel
Change-Id: Icadb4ceb50997a31bafa2356bfa434568c056593
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-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-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