mcu-debug / rtos-views

RTOS views for microcontrollers
MIT License
24 stars 11 forks source link

Add SafeRTOS support. #46

Open willson556 opened 5 months ago

willson556 commented 5 months ago

This PR adds support for Wittenstein High Integrity Systems' SafeRTOS. It has been tested with their ARM Cortex-M7 distribution.

SafeRTOS has a similar API and structure to FreeRTOS but is a re-implementation that achieves functional safety certification.

I copy/pasted the FreeRTOS plug-in and adapted it to SafeRTOS. This seems to be the approach taken with the other RTOS'. If you'd prefer, I could extract a common base class (or utility class) that is shared between the two.

Screenshot:

image
PhilippHaefele commented 2 weeks ago

@willson556 Sorry for not responding.

First of all thanks for contributing. Before looking into code I do have a general point.

We like to have examples on a broadly available Board. Best would be https://www.st.com/en/evaluation-tools/nucleo-f429zi.html . This helps us to do debugging on our own. Is there an example with instructions available or are you willing to create one?

willson556 commented 2 weeks ago

No problem, I understand the time to support these projects comes and goes.

Looking at available example projects for SafeRTOS (that can be acquired without paying a license fee) for the STM32 series, it looks like we'd have to go with the STM32F429I-Discovery to get one with GCC support:

image

The demos are distributed without the SafeRTOS source, just header files and pre-compiled static libraries so the toolchain needs to match to avoid issues. I'll get that demo and eval board and see if I can put something together.