Skip to main content
Visitor II
November 25, 2022
Solved

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

  • November 25, 2022
  • 3 replies
  • 2626 views

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.
    Best answer by Semer CHERNI

    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.

    3 replies

    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.

    BOrhu.1Author
    Visitor II
    November 25, 2022

    Thanks, the document seems quite helpful.

    Graduate II
    November 25, 2022

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

    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.