stateos / StateOS

Free real-time operating system (RTOS) for microcontrollers with advanced c++ wrapper and support for std::thread
MIT License
169 stars 49 forks source link

[CR]: Add support to MPU #2

Closed rahmanih closed 3 years ago

rahmanih commented 6 years ago

Hi,

FreeRTOS introduced the MPU feature in its recent releases. Is there any plan to add it in StateOS?

regards haithem.

rajszym commented 6 years ago

Well, for now I do it for fun. There is no plan to add any special features in future versions of StateOS. I implement various crazy ideas that come to my mind, so I do not exclude the possibility of support also for MPU in the future.

Rajmund

FreddieChopin commented 5 years ago

@rahmanih

FreeRTOS introduced the MPU feature in its recent releases.

I remember using MPU in FreeRTOS as old as v7, 6 years ago, and this was such a painful experience that after some fruitless fights with the restrictions posed by MPU I just switched back to the "normal" version. Generally almost anything more fancy did not work (shared objects, dynamic memory, ...). I'm not sure anything changed now, but I'm open to learning something new, so if you have any experience to share - please do!

rahmanih commented 5 years ago

I think StateOS will have to support the MPU to be able to run on ARMv8-M (trust zone)

rajszym commented 4 years ago

For now basic prevention has been added using MPU for ARMv7-M (use nullptr, stack overflow).