cancel
Showing results for 
Search instead for 
Did you mean: 

STL with HAL timebase source set to timer doesn't work after RAM test

FLomb.2
Associate

I have a project configured with CubeMX that includes an RTOS. Because of RTOS, I use TIM2 as the HAL timebase. What I have observed is that STL_FullRamMarchC overwrites the htim2 structure and after interrupts are re-enabled, the HAL_TIM_IRQHandler tries to work with an invalid timer handle.

I'm wondering if there is a way to configure the STL to handle this, or do I need to customize some of the STL code for my use case.

1 REPLY 1
Bruno_ST
ST Employee

Hello @FLomb.2​ 

I think it is like https://community.st.com/s/article/ClassB-example-hard-fault, you have to save content of the htim2 structure somewhere and restore it.

BR,

Bruno

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.