Skip to main content
BOrhu.1
Associate
November 25, 2022
Solved

Can I use CubeMX functions or HAL library in functional safety projects?

Hello,

I am developing a functional safety project in IEC 61508 standard, which requires static and unit testing of all of the functions in the project. My question is, "Can I use auto-generated CubeMX configuration functions or the HAL library in my project since they are not tested with respect to the standard?" If not, what would be the best way to configure the peripherals? Should I just copy the corresponding register values from CubeMX? Any suggestions is appreciated.

Thanks.

This topic has been closed for replies.
Semer CHERNI
Semer CHERNIBest answer
ST Employee
November 25, 2022

Hello @BOrhu.1​ 

First let me thank you for posting.

I advise you to check this link which contains docs, SW packs and training video about safety project subject.

Hope this I answered you question.

If it's the case, please mark it as best answer to be visible to other community members.

Kind regards,

Semer.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

5 replies

Semer CHERNI
Semer CHERNIBest answer
ST Employee
November 25, 2022

Hello @BOrhu.1​ 

First let me thank you for posting.

I advise you to check this link which contains docs, SW packs and training video about safety project subject.

Hope this I answered you question.

If it's the case, please mark it as best answer to be visible to other community members.

Kind regards,

Semer.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
BOrhu.1
BOrhu.1Author
Associate
November 25, 2022

Thanks, the document seems quite helpful.

Tesla DeLorean
Guru
November 25, 2022

Expect to have to test and validat​e all code throughly.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Loic CHOSSAT
ST Employee
November 28, 2022

STM32 devices can be used to implement safety functions and reach SIL2 or SIL3 level. You can refer to safety manuals availabe on st.com from any STM32 series. You can get a certified self-test library (X-CUBE-STL) for cpu core, flash and RAM, as well as FMEA, FMEDA documentation from ST. All this is available under a specific NDA.

Regarding STM32Cube HAL drivers, note that new developments follow a process certified according to IEC61508 SC2 level. Reports and details are available from ST under NDA. There is a plan to deploy this process on all HAL drivers in the future, with reports and details available for users.

Regarding the STM32 embedded sofware for safety, you may also contact a ST partner referenced here: https://www.st.com/content/st_com/en/ecosystems/functionalsafety.html.