STL with HAL timebase source set to timer doesn't work after RAM test
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-12 11:31 AM
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.
- Labels:
-
FreeRTOS
-
STM32CubeMX
-
TIM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-11-04 3:32 AM
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.
