aboutsummaryrefslogtreecommitdiff
path: root/applications/message_handler/message_handler.cpp
AgeCommit message (Collapse)Author
2022-06-13Refactor message_handler app to be more test friendlyDavide Grohmann
Fix importing indexed models, the inclusion of header files was not working. Change-Id: Idab7e002abc31f57acc4eda6a2f1cf2defdfd5c4
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-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-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-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-12Extract inference parsing in a dedicated libraryDavide Grohmann
Change-Id: I2753434badec7c5af2c19a2b32e5e808131ba519
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-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-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
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-16Add message_handler applicationYulia Garbovich
This is an example application for communication with Ethos-U kernel driver Change-Id: I1d602682cbfdf26a2b082a56ee6c38e93a49ab8d