Skip to main content
FLomb.2
Visitor II
October 12, 2021
Question

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

  • October 12, 2021
  • 1 reply
  • 673 views

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.

This topic has been closed for replies.

1 reply

ST Employee
November 4, 2021

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.