ClassB STL_ClockFreqTest with HSI fails frequently on STM8AL3188
Once the STM8-SafeCLASSB SW package is integrated into our application the Periodic run time self tests are executed continuously but the STL_ClockFreqTest fails randomly. While running the entire application, that test normally fails after about an hour but some other times take 45min or even 4 hours.
We are using the HSI as clock source.
While running a debug session I can see that the measured LSI period is always above the threshold.
We are using IAR for our project.
In our application we also use Timers 3 and 5, SPI1 in slave mode with DMA, SPI2 in master mode, and EXTI.
How to get full stability on this test? Is it possible that some of the mentioned peripherals could affect that test?
Thanks in advance,
Ricardo
