2026-03-31 12:30 AM - last edited on 2026-04-03 8:22 AM by FBL
Hi Support Team,
I am currently using the STM self-test library to ensure compliance with IEC 60730 Class B requirements. Specifically, I worked with the example package X-CUBE-CLASSB-G0 v4.0.0 on the NUCLEO-G071RB platform, utilizing the provided STL_Lib.a library into my projects.
However, I am encountering an issue related to limited RAM availability. The library appears to consume a significant amount of memory, leading to a global variable corruption.
Could you please advise if there is a lighter or more memory-optimized version of this library available that would still allow us to meet IEC 60730 Class B compliance requirement
2026-04-03 8:26 AM
Hi @Aayush
I checked internally. It seems the package is already optimized, and further reduction is constrained by the certified safety architecture.
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.
2026-04-07 12:30 AM
Hello,
from table 4 of the UM3083, you can read the STL library execution consumes maximum 236 bytes of RAM what means 0,6% of the 36KB memory available at G071RB.
If you still think that it is significant amount of the memory, you can download older version 2.3.0 available at full source and try to reduce the RAM space by adapting it. I will cross my fingers to pass certification with such an adapted package then.
Best regards,
Petr
2026-04-07 1:15 AM
Please, specify if you face compilation issue (due to insufficient RAM space) or corruption of variables during execution of your correctly compiled project. Is the RAM test backup process disabled by defining STL_DISABLE_RAM_BCKUP_BUF at your project?
Thank you,
Petr