X-CUBE-STL on ThreadX

embdev 21 Reputation points
2022-08-07T11:12:23.727+00:00

Hello,

For a safety-critical application, is there any example code or application note on how to integrate X-CUBE-STL with ThreadX? Kindly note that X-CUBE-STL must be executed with privileged level. Is it required or recommended to use 'ThreadX Modules' in order to isolate STL code from other application code? Please advise.

https://www.st.com/en/embedded-software/x-cube-stl.html

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
341 questions
{count} votes

Accepted answer
  1. Scott Azure RTOS 4,051 Reputation points
    2022-08-08T18:38:21.697+00:00

    We don't have plans right now to certify Modules, but that may happen in the future. The safety manual comes with the certifications - these cost extra (see FAQ question here: https://azure.microsoft.com/en-us/pricing/details/rtos/#faq)

    ThreadX without Modules doesn't do any memory isolation.
    You can manually set up your MMU/MPU and put safety-critical threads in one section of memory and the rest in another memory section.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. embdev 21 Reputation points
    2022-08-09T05:43:41.923+00:00

    Is there any ThreadX example demonstrating isolation of memory regions by setting up MPU manually for Cortex M4/M7?

    Are all Azure RTOS threads executed with privileged level instead of user level, aren't they? Because the STL requires privileged mode execution. It also run tests on FPU registers. Is any ThreadX setup needed for FPU?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.