Home > On-Demand Archives > Talks >

How to Detect Anomalies in RTOS Applications

Dr. Johan Kraft - Watch Now - EOC 2022 - Duration: 35:38

How to Detect Anomalies in RTOS Applications
Dr. Johan Kraft

If you work with embedded software, you have probably encountered many anomalies over the years. Unexpected deviations in the software behavior, big or small, that may indicate elusive software issues, malfunctioning hardware or even cybersecurity attacks. Such anomalies may cause major problems if not detected and resolved quickly.

Join this webinar to learn best practices for detecting anomalies in RTOS application behavior. You will also gain insight how anomaly detection can be deployed to provide diagnostic data for remote analysis and debugging, both during system testing and in deployment at scale.

italicssurround text with
boldsurround text with
**two asterisks**
or just a bare URL
surround text with
strikethroughsurround text with
~~two tilde characters~~
prefix with

Score: 0 | 2 years ago | no reply

Thank you, as usual a useful and clear presentation!

Score: 0 | 2 years ago | 1 reply

Great talk and Q&A, thanks! I've tried defining different fault handlers but they don't seem to give any more information than IAR does when it gets to the hardfault handler, or is the benefit that the register values can be logged in production when there is no access to debugger?

I've also tried using Tracealyzer and found it tricky to setup with uC/OS-III and then "hard to see the woods from the trees" when trying to see what's going on in my application (over 20 tasks). Any advice?

Score: 0 | 2 years ago | no reply

Yes, hardfault handlers doesn't allow for any additional information compared to a debugger. My point was to enable detection and reporting in production, when no debugger is connected.
Regarding Tracealyzer, if you would like more guidance on how to leverage Tracealyzer, I suggest you contact support@percepio.com and book a free session with our senior FAE, Kristoffer. There is also plenty of material to read and watch at these links:

Score: 0 | 2 years ago | 1 reply

Hi Johan - Wow, thanks for this amazing talk packed with tons of valuable insights! I cannot wait to translate those into benefits on my current project - even though that will be some time down the line, since I surely need some time to process all the input :-)

There is one more lingering open question that is haunting me since your talk and that of Kristoffer:
I would really like to repeatedly trace/profile a module which is part of a greater system used on different targets (varying MCU/RTOS/..) in order to ensure that critical parameters are and stay within tolerable limits - Basically every single data-piece from your talk :-). It could even be, that this module is implemented several times separately. It goes along the theme we just heard a presentation today from Tyler "Essential Device and Firmware Metrics"
I would really appreciate to get some ideas/thoughts on this!

Thanks again for this marvelous Talk Johan!

Score: 0 | 2 years ago | no reply

Hi Andreas. Thanks for positive review! Perhaps we could schedule a call to discuss this further? Contact me at johan.kraft@percepio.com and propose a time.

Score: 0 | 2 years ago | 1 reply

Hello Johan,
do you know any techniques, how to create core log file for gdb analysis in STM32F7 MCU? It should be done in hard fault and store call stack. Gdb allow to show local variables and member class variables too, but i know it from linux. In this case should have to do analysis in linux too with any cross gdb. Thank you.

Score: 0 | 2 years ago | 1 reply

Well, I found this thing on github recently. I have not tried it myself though. https://github.com/adamgreen/CrashDebug

Score: 0 | 2 years ago | no reply

It is perfect, thank you very much for valuable source, i add it to our TODO list.

Score: 0 | 2 years ago | 1 reply

Does DevAlert only stores and handles errors / issues detected on the devices or does it also handles more metrics-like data (eg: storing battery percentage at regular interval to detect if the battery gets drained too quickly) ?
How are DevAlert and Traceanalyzer linked ? Is it possible to use one without the other ?

Score: 0 | 2 years ago | 1 reply

Support for metrics is planned. But you can always handle it in application code and use DevAlert for reporting and diagnostics.
DevAlert uses Tracealyzer for diagnostics, but Tracealyzer can also be used on its own.

Score: 0 | 1 year ago | no reply

I know this post is old but just to add. I think the tool from Memfault can track battery state for IoT devices and Crash dumps from ARM


Score: 0 | 2 years ago | 1 reply

Excellent talk. Very well done.

Score: 0 | 2 years ago | no reply

Thanks Jean!