Dynamic analysis of RTOS based firmware

Hello guys,

Is there any document available which might have general test cases for dynamic analysis of firmware in RTOS environment?

Like: To find deadlock possibility, event response of any task, missing deadlines.

Not that I am aware of. You likely can benefit from using Tracelyzer for getting visibility into application execution.

Those are generally “hard” problems, some of which are hard to determine even on “big” systems with lots of resources.

Deadlock detection requires a lot of checks (for the general case) and recording more information than FreeRTOS does. While FreeRTOS does record who holds a mutex, it doesn’t keep track of all the mutexes a task holds, or even a list of all the mutexes.

There is no way for it to track “missed deadlines” as it doesn’t have a way to even know what deadlines exist.

Hi @aggarg , @richard-damon ,

Is there any example test case document if it is available could you share with me?

Thanks and regards

There are plenty of tests for FreeRTOS itself, but those don’t address your criteria, as those are application level. And in a major aspect, the actual definitions of what should be tested is based on the application, and is largely independent of the “OS” you are using.